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
Смотрите видео Slices and NeoPixels in CircuitPython онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Prof. John Gallaugher 01 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 168 раз и оно понравилось 13 людям.