August 2022
Intermediate to advanced
108 pages
2h 23m
English
The Raspberry Pi is connected to the TM1620 on the custom binary clock board via the SPI bus. The first thing to do is to use Circuits.SPI to open the bus.
By far the trickiest part about the TM1620 is noticing that the bits are sent as little-endian. That means least significant bytes go first. The figure from section 8, figure 5, from the datasheet shows that B0, the least significant byte, goes first:

SPI normally sends data as big-endian. Luckily, Circuits.SPI has an lsb_first option to send data in exactly the format we need.
The second tricky part about the TM1620 is that the data bits (DIN) ...
Read now
Unlock full access