The Real Python Podcast cover image

Resources and Advice for Building CircuitPython Projects

The Real Python Podcast

00:00

How to Dimming LEDs With a for Loop

The problem with dimming these LEDs with a for loop is that it's slow. But if you cast the pixel data into a NumPy array and then do the just NumPy dot add, like a ray dot add on that with a negative number, that will do that really fast. And so that makes new pixel animations look so much better. It's amazing how much better it looks just from the just from this simple approach.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app