Need help with pico w webserver controlling ws2812b's #10006
Replies: 1 comment 2 replies
-
line 117 sets led off then line 118 turns it on. why? just use
you will probably want to make use of stuff like _thread, uasyncio, and microdot, your current script will be frozen at waiting for a connection and will not be able to poll input buttons (maybe you want to use interrupts?) your imports are a mes, you do not need all that mess and duplicate lines you are not using threading, dht, framebuf, ssd1306, and you are not using I2C, ADC from machine you also defined red then defined it as the same thing on the next line |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm trying to get a pico to control led's in my living room basically id like html web page buttons and physical buttons. Everything works but as soon as I press turn led on the loop starts and the page crashes and wont let hit led off. Any help would be appreciated my problems start at line 112 i need the if led on to loop unless i press led off.
Cheers.
https://github.com/handofiron/micropython-pico/blob/main/control-panel-new.py
Beta Was this translation helpful? Give feedback.
All reactions