SEE PLAYLIST FOR NEWER VERSION: Using the adafruit_led_animations library

Поділитися
Вставка
  • Опубліковано 16 жов 2024

КОМЕНТАРІ • 7

  • @chrisscanlan8280
    @chrisscanlan8280 11 місяців тому

    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.

    • @profgallaugher
      @profgallaugher  11 місяців тому

      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!

  • @100oracle
    @100oracle Рік тому

    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?

    • @profgallaugher
      @profgallaugher  Рік тому +1

      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!

    • @100oracle
      @100oracle Рік тому

      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.

  • @jaroslavmoravec1335
    @jaroslavmoravec1335 2 роки тому

    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.