M5Stack M5Atom small Larson Style scanner
Inspired to improve my own Larson Style scanners by @zleap and maybe learn a little micropython. This is a M5Atom Matrix, with 25 neopixels, only using the first 5 for this. My code is rough at best, I'm not a python person, and made it work with what little I do know. Code below. ------------------ from time import sleep import machine, neopixel NUMBER_PIXELS = 25 STATE_MACHINE = 0 LED_PIN = 27 strip = neopixel.NeoPixel(machine.Pin(LED_PIN), NUMBER_PIXELS) #(NUMBER_PIXELS, STATE_MACHINE, LED_PIN, "GRB") # Color RGB values red = (255, 0, 0) red_med = (32, 0, 0) red_light = (8, 0, 0) off = (0,0,0) delay = .06 for i in range(0, 5): strip[i] = (red_light) strip.write() sleep(.1) for i in range(0, 5): strip[i] = (red_med) strip.write() sleep(.1) for i in range(0, 5): strip[i] = (red) strip.write() sleep(.1) for i in range(0, 5): strip[i] = (red_med) strip.write() sleep(.1) for i in range(0, 5): strip[i] = (red_light) strip.write() sleep(.1) while True: strip[0] = (red) s
βhttps://makertube.net/w/2bdahjn9Ze5kRdfQB6hSK4