tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
587 stars 180 forks source link

Add support for TM1638 based boards #576

Closed ghost closed 1 year ago

ghost commented 1 year ago

I added driver for TM1638. Chip using serial interface (CLK, STB, DIO) unlike TM1637 which exists in drivers repository.

Datasheet describes TM1638 as an LED Controller driven on a 1/16 to 14/16 duty factor. 10 segment output lines, 8 grid output lines, 8 segment/key scan output lines, one display memory, control circuit, key scan circuit are all incorporated into a single chip to build a highly reliable peripheral device for a single chip microcomputer. Serial data is fed to TM1638 via a three-line serial interface.

ghost commented 1 year ago

I have changed target branch to dev