数码管

../../../../_images/%E6%95%B0%E7%A0%81%E7%AE%A1-H.png

概述

4位7段LED数码管显示,可显示整形数字。

技术参数

工作电压: VCC 3.3V -5V

模块尺寸:32*48mm

固定安装:2个兼容塑料积木通孔

显示范围:0-9999

引脚定义

引脚

定义

GND

地

VCC

电源

SCL

I2C时钟

SDA

I2C数据

示例程序

数码管显示光线值。

from mpython import *

from bluebit import *

import time

seg = SEGdisplay()
while True:
    seg.numbers(light.read())
    time.sleep(0.1)
../../../../_images/%E6%95%B0%E7%A0%81%E7%AE%A1.png