Add Docker deployment support, richer Selenium/LED pattern tests, in-browser diagnostics, responsive UI improvements, and 16x16 panel simulation tooling to speed iteration and hardware-style prototyping. Made-with: Cursor
13 lines
234 B
Python
13 lines
234 B
Python
"""Example ESP32 NeoPixel script using mock modules in browser."""
|
|
|
|
from machine import Pin
|
|
import neopixel
|
|
|
|
|
|
np = neopixel.NeoPixel(Pin(4), 8)
|
|
np.fill((0, 0, 0))
|
|
np[0] = (255, 0, 0)
|
|
np[1] = (0, 255, 0)
|
|
np[2] = (0, 0, 255)
|
|
np.write()
|