File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff 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
487489import busio
488490import board
489491import adafruit_bmp280
@@ -499,6 +501,31 @@ The first sensor I tried was broken. It was correctly detected during the bus
499501scan, but delivered wrong measurements all the time. Luckily I had some more
500502at 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(0x cafe )
525+ display.scroll(" hello world" )
526+ display.temperature(23 )
527+ ```
528+
502529## Misc
503530
504531### WS2812 protection circuit
You can’t perform that action at this time.
0 commit comments