Это видео недоступно.
Сожалеем об этом.
Using the adafruit_led_animations library
HTML-код
- Опубликовано: 22 авг 2021
- Learn to create slick LED animations that are remarkably easy-to-implement using the adafruit_led_animations library for CircuitPython. Part of Prof. John Gallaugher's CircuitPython School - a playlist for his Physical Computing course for university undergraduate students.
Hi, sorry for probably very simple question. I want to switch between animations (say chase and sparkle) with a button click. I am really struggling in circuit python. The running animation seems to block the button input, so nothing changes unless button held down. Sometimes animation will only advance with each click instead of keeping going.
I have read about asyncio, but I can't make this work, either.
Frustratingly I can get this to work on an Adafruit Trinket m0 if I use Makecode Maker blocks. But I feel this approach is cheating and I am trying to get code to run on a Pico variant called the Plasma 2040 that has 4 built in buttons and a specific terminal for the Neopixels. Thank you for any help / advice.
Could you be having a problem with debouncing? Check out the video on debouncing later in the playlist. The video "Help My Pico Button Doesn't Work! Fix multiple press reporting w/Blocking & Debouncing, + colorwheel" may help. Good luck!
Hello, I have problem, when i import anything like colorcycle = ColorCycle(pixels, 0.1, colors=RAINBOW), all of other stuff like pixels.fill won't work at all. Is there something, what i miss? Thank you for help.
Nevermind xD i solved it, just set autowrite False
Been following along these wonderful videos, was getting confident until i started getting memory allocation errors. My error it appears is that I'm using a CPX instead of the bluefruit and apparently the CPX doesn't have enough ram to do all this. Is this a correct hypothesis?
Hmmm. Off the top of my head I don’t know the memory difference between these boards. You might check out Kattni’s code here and see if you still have probs. The Adafruit forums and Discord especially can also be very helpful. learn.adafruit.com/circuitpython-led-animations Keep hacking!
Yeah the kattni code is what i have been going through with your great videos. I can only load 3-4 animations before i get memory allocation errors with my CPX. Im now trying to learn makecode.