Hello, my first post here. I am trying to use a Neopixel strand connected to an Ext.I/O2 module (connected to M5StickC2). I can see that I have a Neopixel option for port usage, but no way to write to them. This is a bit of code that let me just light the first pixel:
import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import EXTIO2Unit
i2c0 = None
extio2_0 = None
rgb_0 = None
def setup():
global i2c0, extio2_0, rgb_0
M5.begin()
i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
extio2_0 = EXTIO2Unit(i2c0)
extio2_0.set_config_mode(0, 4)
def loop():
global i2c0, extio2_0, rgb_0
M5.update()
extio2_0.write_rgb_led(0, 0xff0a14)
Any idea to for further ? Thanks,