UPDATED VERSION LINKED IN DESC: Slices and NeoPixels in CircuitPython

Опубликовано: 10 Май 2026
на канале: Prof. John Gallaugher
197
13

FOR LATEST VERSION SEE: https://bit.ly/circuitpython-school
Let's go for a slice! Sequence Slices in CircuitPython, that is! We'll learn to use sequence slicing to easily update a group of neopixels with a single line of code. We'll learn about the start, stop, and step parameters of a slice. We'll use multiplication to repeat a light in a slice of neopixels. We'll learn how -n can be used to address the last n values of a slice, or all values except for the last n values. We'll learn techniques to quickly address all elements of a slice, regardless of length. We'll work with the // or floor division operator for easily converting values to integers. And we'll learn a technique for quickly adding open and close characters to a selection.
Part of Prof. John Gallaugher's university course on Physical Computing: https://bit.ly/circuitpython-school
Some links mentioned in the lesson include:
John Park's CircuitPython Parsec:    • #adafruitJohn Park's CircuitPython Parsec:...  
JP's Pick of the Week:    • JP’s Product Pick of the Week 7/30/24 MEME...  
TodBot's Tips and Tricks: https://github.com/todbot/circuitpyth...
TodBot on Tindie: https://www.tindie.com/stores/todbot/
The Bootloader Podcast: https://thebootloader.net