Hello! I’m trying to figure out how to get the data from the ZeRGBa from the app to
Micro Python but the Docs for it are for Arduino. I Mainly need help trying to get the intergets from ZeRGBa to MicroPython
Hardware: NodeMCU Amica (ESP8266) with MicroPython Firmware and WS2811
Smartphone OS: Stock Android 10
Blynk Server
Blynk Library: V0.2.1 for MicroPython
import BlynkLib
import machine, neopixel
import network
import time
BLYNK_AUTH = ''
WIFI_SSID = ''
WIFI_PASS = ''
np = neopixel.NeoPixel(machine.Pin(4), 8)
n = np.n
print("Connecting to WiFi...")
wifi = network.WLAN(network.STA_IF)
wifi.active(True)
wifi.connect(WIFI_SSID, WIFI_PASS)
while not wifi.isconnected():
pass
print('IP:', wifi.ifconfig()[0])
print("Connecting to Blynk...")
blynk = BlynkLib.Blynk(BLYNK_AUTH)
print("Connected!")
@blynk.on("V4")
def v3_write_handler(value):
print("Event :D")
r = int(value[0])
print(r)
g = int(value[1])
print(g)
b = int(value[2])
print(b)
for i in range(n):
np[i] = (r, g, b)
np.write()
while True:
blynk.run()