Slices and NeoPixels in CircuitPython

Published: 01 August 2024
on channel: Prof. John Gallaugher
168
13

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-tutorials.
Some links mentioned in the lesson include:
John Park's CircuitPython Parsec:    • #adafruitJohn Park's CircuitPython Pa...  
JP's Pick of the Week:    • JP’s Product Pick of the Week 7/30/24...  
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


Watch video Slices and NeoPixels in CircuitPython online without registration, duration hours minute second in high quality. This video was added by user Prof. John Gallaugher 01 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 168 once and liked it 13 people.