Skip to content
MicroPython drivers for the Neo7Segment display
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
neo7segment
LICENSE
README.md
setup.py

README.md

micropython-neo7segment

A MicroPython driver for the Neo7Segment displays created by Seon, the Unexpected Maker!

Examples

See the examples directory.

Note that it's possible to run example code without hardware on regular CPython - but instead of a lovely seven-segment rendering with neopixels you'll have RGB values for each neopixel printed out. See display_all_fake.py.

For amore authentic experience, copy display_all.py to a MicroPython-powered board, connect a Neo7Segment to it (Pin 17 by default) and execute the code.

Basic Usage

import utime as time
from neopixel import NeoPixel
from machine import Pin

neo = NeoPixel(Pin(17), 29, timing=True)
neo7 = Neo7Segment(neo, 1)

display_string = '1234567890.abcdef'
for char in display_string:
    neo7.display(char, (0, 0, 1))
    time.sleep_ms(250)

display_all_output

You can’t perform that action at this time.