first save

This commit is contained in:
tiijay
2025-10-19 18:29:10 +02:00
commit b5a30adb27
1303 changed files with 234711 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
###########################
# neopixel
from typing import Tuple
class _NeoPixelBase:
"""
a class to add a few missing methods to the NeoPixel class
"""
def __len__(self) -> int:
"""
Returns the number of LEDs in the strip.
"""
...
def __setitem__(self, index: int, val, /) -> None:
"""
Set the pixel at *index* to the value, which is an RGB/RGBW tuple.
"""
...
def __getitem__(self, index: int, /) -> Tuple:
"""
Returns the pixel at *index* as an RGB/RGBW tuple.
"""
...