DigiClockUnit
UNIT-Digi-Clock is a 2.1 inch 4-digit 7-segment display module. There are decimal points on each digit and an extra wire for colon-dots in the center, which can display Decimals and Clock. This module adopts TM1637 as the driver IC, and STM32F030 as I2C communication. I2C address can be modified per 4-bit dip switch. The red LED supports 8 brightness. And we have reserved 4 fixing holes there.
Support the following products:
Micropython Example:
import os, sys, io
import M5
from M5 import *
import time
from hardware import *
from unit import DigiClockUnit
i2c = I2C(1, scl=33, sda=32)
digi_clock = DigiClockUnit(i2c)
digi_clock.set_string("00:00")
digi_clock.set_brightness(8)
class DigiClockUnit
Constructors
Methods
- DigiClockUnit.set_brightness(brightness: int) None
Set the brightness of the display.
- 参数:
brightness (int) – The brightness of the display, range from 0 to 8.
UIFLOW2:
