August 2022
Intermediate to advanced
108 pages
2h 23m
English
The next step is to send data to the TM1620 to make it turn on an LED. The flow chart on page 7 of the datasheet shows how to do this:
In short, we set the display mode, send a write command, send the data to write, and then send the command to set brightness and go. We’ll take each one of those in turn.
To follow the instructions on the datasheet to set the mode, we need to send 0b00000010, or just the number 2. Click evaluate on the notebook’s Elixir cell that has this code:
| | SPI.transfer(spi, <<0b00000010>>) ... |
Read now
Unlock full access