Hi...
i have a strange Problem driving my neopixel ring.
Everything worked just fine but now all the pixel of the ring are 100% On all the time.
I can't figure out what happened...
Tried the following:
- using library from daniel (same result)
- reset filesystem / reinstalled firmware
- put the wipy on my breadboard instead of the expansion board
- tried new Neopixel-ring
- tried new wipy board
Any Idea? It did work...
Using the ws2812 from oliv:
Code: Select all
import machine
import time
from ws2812 import WS2812
from machine import UART
import os
uart = UART(0, baudrate=115200)
os.dupterm(uart)
from network import WLAN
wlan = WLAN() # get current object, without changing the mode
if machine.reset_cause() != machine.SOFT_RESET:
wlan.init(WLAN.STA)
# configuration below MUST match your home router settings!!
wlan.ifconfig(config=('192.168.178.107', '255.255.255.0', '192.168.178.1', '8.8.8.8'))
if not wlan.isconnected():
# change the line below to match your network ssid, security and password
wlan.connect('lalala', auth=(WLAN.WPA2, 'lalala'), timeout=5000)
while not wlan.isconnected():
machine.idle() # save power while waiting
chain = WS2812(ledNumber=16, brightness=100)
data = [(255, 102, 0),(200, 80, 0), (160, 42, 0), (140,30,0), (127, 21, 0), (63, 10, 0), (31, 5, 0),(15, 2, 0), (7, 1, 0), (0,0, 0), (80,80,200),(0, 0, 0), (0, 0, 0), (0, 0, 0), (0,0,0),(0, 0, 0)]
chain.show(data)
while True:
data = data[1:] + data[0:1]
chain.show(data)
time.sleep_ms( 40 )