Comments (5)
Hi rolfyone,
Did you run the setup script? Check the readme for this project. There are a few steps (assuming Debian system):
- sudo apt-get update
- sudo apt-get install build-essential python-dev
- sudo apt-get install python-smbus python-imaging
- sudo python setup.py install
Possibly you missed step 4?
Other than that, I would double check that the code you provided from memory really matches up with the code you are trying to execute.
from adafruit_python_led_backpack.
I've definitely run step 4. I've got anther script that is using the same import and working (without subclassing) just using SevenSegment like in the example script.
I was trying to encapsulate setting other aspects of the metacharacter (center colon, left colon dots) within this subclass, as well as having it write a 12 hour clock... Maybe I should just hack it straight into seven segment i guess, I just figured that subclassing would let me implement all the bits i need without updating the library initially and having to make install all the time...
from adafruit_python_led_backpack.
Give this a try:
from Adafruit_LED_Backpack import SevenSegment
class ClockDisplay(SevenSegment.SevenSegment):
...
If that doesn't help, please include the error message.
from adafruit_python_led_backpack.
Thanks for that, that was precisely the problem! I'm sorry to raise an issue and it was something silly :( I was assuming it was something I was doing wrong...
from adafruit_python_led_backpack.
Oh no problem glad you got the issue resolved, thanks jakekarnes42 for jumping in to help!
from adafruit_python_led_backpack.
Related Issues (11)
- Won't work
- 5V incompatible HOT 1
- docstring error in Matrix8x8.py for set_pixel() HOT 1
- error in print_number_str() when executed by python3 HOT 3
- BicolorMatrix8x8 example code error line 32
- Not able to install with the setup.py/ez_setup.py HOT 1
- No module named Adafruit_LED_Backpack HOT 2
- Need to change SDA pins HOT 1
- Problems on RPi HOT 3
- I want to make a PR to extend character set for SevenSegment.py HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_python_led_backpack.