Skip to content

mattytrentini/micropython-neo7segment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

MicroPython drivers for the Neo7Segment display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages