MCPcopy Create free account
hub / github.com/FastLED/FastLED / _print_pixel_table

Function _print_pixel_table

ci/autoresearch/decode.py:133–139  ·  view source on GitHub ↗

Print a table of pixel RGB values.

(pixels: list[list[int]])

Source from the content-addressed store, hash-verified

131
132
133def _print_pixel_table(pixels: list[list[int]]) -> None:
134 """Print a table of pixel RGB values."""
135 print(f"\n {'Index':<8}{'R':<6}{'G':<6}{'B':<6}")
136 print(f" {'─' * 26}")
137 for i, px in enumerate(pixels):
138 r, g, b = px[0], px[1], px[2]
139 print(f" {i:<8}{r:<6}{g:<6}{b:<6}")
140
141
142async def run_device_decode_autoresearch(

Callers 1

Calls 1

printFunction · 0.50

Tested by

no test coverage detected