7-Segment Display

../../../../_images/seven_segment_h.png

Overview

4-digit 7-segment LED display, capable of showing integer numbers.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Module dimensions: 32*48mm

Mounting: 2 plastic building block compatible through-holes

Display range: 0-9999

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

SCL

I2C clock

SDA

I2C data

Example Code

7-segment display shows the light sensor value.

from mpython import *

from bluebit import *

import time

seg = SEGdisplay()
while True:
    seg.numbers(light.read())
    time.sleep(0.1)
../../../../_images/seven_segment.png