Skip to content

Commit 0a52843

Browse files
authored
add TM1637 display info (jandelgado#10)
1 parent 1f74ff8 commit 0a52843

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Notes on Arduino libraries and sketches and other related stuff.
2828
* [MP3 Modules](#mp3-modules)
2929
* [VS1053 notes](#vs1053-notes)
3030
* [Bosch BMP280](#bosch-bmp280)
31+
* [TM1637 based Display](#tm1637-based-display)
3132
* [Misc](#misc)
3233
* [WS2812 protection circuit](#ws2812-protection-circuit)
3334
* [Author](#author)
@@ -484,6 +485,7 @@ from the sensor is straight forward:
484485
485486
486487
```python
488+
# CircuitPython example
487489
import busio
488490
import board
489491
import adafruit_bmp280
@@ -499,6 +501,31 @@ The first sensor I tried was broken. It was correctly detected during the bus
499501
scan, but delivered wrong measurements all the time. Luckily I had some more
500502
at hand to test wether it was a software or a hardware problem.
501503

504+
## TM1637 based Display
505+
506+
<img src="images/TM1637.png" width="500" alt="bmp280">
507+
508+
This is a 4 digit 7-segment display using a TM1637 driver, which uses a data
509+
and a clock line for connection to the MCU.
510+
511+
| Display(TM1637) | Pico Pi Signal | Pin |
512+
|-----------------|----------------------|-----|
513+
| CLK | GP14 | 19 |
514+
| DIO | GP15 | 20 |
515+
| VCC | 3V3(OUT) or VBUS(5V) | 36 |
516+
| GND | GND | 18 |
517+
518+
```python
519+
# CircuitPython example using https://github.com/bablokb/circuitpython-tm1637
520+
import board
521+
from TM1637 import TM1637
522+
523+
display = TM1637(board.GP14,board.GP15)
524+
display.hex(0xcafe)
525+
display.scroll("hello world")
526+
display.temperature(23)
527+
```
528+
502529
## Misc
503530

504531
### WS2812 protection circuit

images/TM1637.png

371 KB
Loading

0 commit comments

Comments
 (0)