thilaire / rpi-TM1638

Raspberry Pi driver for chained TM1638 boards
GNU General Public License v3.0
20 stars 14 forks source link

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

Closed LinuksGuru closed 4 years ago

LinuksGuru commented 4 years ago

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.

LinuksGuru commented 4 years ago

Yes, it works exactly as described above.