Giter Site home page Giter Site logo

Comments (5)

jakekarnes42 avatar jakekarnes42 commented on July 28, 2024

Hi rolfyone,

Did you run the setup script? Check the readme for this project. There are a few steps (assuming Debian system):

  1. sudo apt-get update
  2. sudo apt-get install build-essential python-dev
  3. sudo apt-get install python-smbus python-imaging
  4. 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.

rolfyone avatar rolfyone commented on July 28, 2024

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.

jakekarnes42 avatar jakekarnes42 commented on July 28, 2024

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.

rolfyone avatar rolfyone commented on July 28, 2024

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.

tdicola avatar tdicola commented on July 28, 2024

Oh no problem glad you got the issue resolved, thanks jakekarnes42 for jumping in to help!

from adafruit_python_led_backpack.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.