GithubHelp home page GithubHelp logo

rpi-tm1638's People

Contributors

thilaire avatar wangdino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rpi-tm1638's Issues

The clearDisplay() method . It seems to bring the object in a not desirable state.

Thanx a lot for the nice library. It saves a lot of ime for me and my students. However there seems to be something "funny" about the clearDisplay() method . It seems to bring the object in a to me unknown state. Not unrecoverable, but maybe not desirable.

TM.clearDisplay()
TM.segments[0] = '123'
TM.turnOn(1)
TM.segments[0] = '123'

"""
... Here I am stuck!
...
... The only way to recover is to initialize the objec again
... """

TM = TMBoards(DIO, CLK, STB, 0)
TM.segments[0] = '123'

No display, module is ok

Hello,

Thank's for your code !

I have no display on my TM1638.

Test python 2.7 :

root@raspberrypi(rw):/opt/rpi-TM1638# python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to rpi_TM1638.egg-info/requires.txt
writing rpi_TM1638.egg-info/PKG-INFO
writing top-level names to rpi_TM1638.egg-info/top_level.txt
writing dependency_links to rpi_TM1638.egg-info/dependency_links.txt
reading manifest file 'rpi_TM1638.egg-info/SOURCES.txt'
writing manifest file 'rpi_TM1638.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/rpi_TM1638
copying build/lib.linux-armv6l-2.7/rpi_TM1638/TM1638s.py -> build/bdist.linux-armv6l/egg/rpi_TM1638
copying build/lib.linux-armv6l-2.7/rpi_TM1638/__init__.py -> build/bdist.linux-armv6l/egg/rpi_TM1638
copying build/lib.linux-armv6l-2.7/rpi_TM1638/Font.py -> build/bdist.linux-armv6l/egg/rpi_TM1638
copying build/lib.linux-armv6l-2.7/rpi_TM1638/TMBoards.py -> build/bdist.linux-armv6l/egg/rpi_TM1638
byte-compiling build/bdist.linux-armv6l/egg/rpi_TM1638/TM1638s.py to TM1638s.pyc
byte-compiling build/bdist.linux-armv6l/egg/rpi_TM1638/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/rpi_TM1638/Font.py to Font.pyc
byte-compiling build/bdist.linux-armv6l/egg/rpi_TM1638/TMBoards.py to TMBoards.pyc
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/not-zip-safe -> build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/requires.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying rpi_TM1638.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
creating 'dist/rpi_TM1638-0.1-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing rpi_TM1638-0.1-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/rpi_TM1638-0.1-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/rpi_TM1638-0.1-py2.7.egg
Extracting rpi_TM1638-0.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
rpi-TM1638 0.1 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/rpi_TM1638-0.1-py2.7.egg
Processing dependencies for rpi-TM1638==0.1
Searching for RPi.GPIO==0.7.0
Best match: RPi.GPIO 0.7.0
Adding RPi.GPIO 0.7.0 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for rpi-TM1638==0.1

test_TM.py paramètre is :

# my GPIO settings (two TM1638 boards connected on GPIO19 and GPIO13 for DataIO and Clock; and on GPIO06 and GPIO26 for the STB)
DIO = 19
CLK = 13
STB = 06, 26

Launch test script :


root@raspberrypi(rw):/opt/rpi-TM1638# python test/test_TM.py 
Traceback (most recent call last):
  File "test/test_TM.py", line 25, in <module>
    TM.leds = (True, False, True)   # set the three first leds
AttributeError: can't set attribute

If i comment TM.leds ligne :

- TM.leds = (True, False, True)   # set the three first leds
+ #TM.leds = (True, False, True)   # set the three first leds

Launch :

root@raspberrypi(rw):/opt/rpi-TM1638# python test/test_TM.py 
root@raspberrypi(rw):/opt/rpi-TM1638# 

I have no display on the TM1638, only the Power LED is red

Have I wired correctly?

Cable_TM1638_PI

I have just one TM1638 on PIN 26, does your library work for only 1?

In python3 say :

root@raspberrypi(rw):/opt/rpi-TM1638# python3 test/test_TM.py 
  File "test/test_TM.py", line 8
    STB = 06, 26
           ^
SyntaxError: invalid token

Thank you in advance for your help,

Q: How to properly init several daisy-chaned boards?

Hi !

Thanks for so useful piece of sofware.
I have problem to determine how to properly init several daisy-chaned boards.

DIO = 19
CLK = 13
STB = 26
TM = TMBoards(DIO, CLK, STB, brightness=7)

I see this code in your original source.
self._nbBoards = len(self._stb)

Am I correctly assume that for multiple boards one should create STB as a list of pins, e.g.
STB = [26, 27], where STB0 = 26, STB1 = 27

Thanks in advance.

Switch Status Determination

Hello,

First of all thanks a lot for the lib.

I'm having a bit difficulty understanding this line here.

I could be wrong but it looks like in case K==0 the boolean would only work for switch 1 (n=0) and switch 5 (n=4), correct?

When S1 is pressed sw = [1, 0, 0, 0] and when S5 is pressed sw = [16, 0, 0, 0], in all other cases sw[K] would always be 0 and the function would not return a key pressed status.

Note: this is related to #4
If it's not fixed it will report error at L171.

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.