-
Name: TM1638plus_PICO
-
Author: Gavin Lyons.
-
Description:
A Raspberry pi PICO, C++ SDK, RP2040 library to display data on a 8-digit TM1638 seven segment module.
- Developed on
- Raspberry pi PICO RP2040
- SDK C++ complier G++ for arm-none-eabi
- CMAKE VScode
There are three examples files(main.cpp) in example folder, To select the one that builds comment it's path in, in the CMakeLists.txt file section add_executable section. Comment one path in and one only.
List No | example file name | Model Num | Desc |
---|---|---|---|
1 | Model1_TESTS/main.cpp | 1 | test routines for model 1 |
2 | Model2_TESTS/main.cpp | 2 | test routines for model 2 |
3 | Model3_TESTS/main.cpp | 3 | test routines for model 3 |
Connections to RPI-PICO, pick any GPIO you want and change it the main.cpp:
- GPIO = STB = Strobe
- GPIO = CLK = Clock
- GPIO = DIO = Data input / output
- GND
- VCC 3.3V ( If VCC is set to 5V, level shift GPIO to 3.3V or damage could result.)
This library supports three variants of the TM1638, which for purposes of this documentation, will be named Model 1 ,Model 2 and Model 3. Pictured below from left to right.
Model No | Module Name | LEDS | Push buttons |
---|---|---|---|
1 | TM1638 LED & KEY | 8 red only | 8 |
2 | TM1638 KEYS, QYF | 0 | 16 |
3 | TM1638 V1.3 or LKM1638 | 8 bi color, red and green | 8 |
This library is a port of my Arduino Library. There you will find the full documentation including the API, which is near identical to PICO except ::
- Extra examples files for Arduino and examples are .ino files.
- High freq data member flag is not needed in PICO library.
- PICO constructor has GPIO parameters in base class.
- In file dependancy graphs ,High level file includes will differ. #include "pico/stdlib.h" will be missing etc.