introduced lookup table for led ring cw

This commit is contained in:
Sebastian
2025-05-28 01:41:12 +02:00
parent 686f76b0fd
commit cd1b0934aa
2 changed files with 37 additions and 9 deletions

17
tools/index_luts.py Normal file
View File

@ -0,0 +1,17 @@
leds = []
for i in range(3,51):
leds.append(i)
leds_first = leds[0:37]
leds_first.reverse()
leds_last = leds[37:48]
leds_last.reverse()
leds_yeah = leds_first + leds_last
print("int lut_ring_cw[48] = {", end="")
for i in range(0,48):
if i < 47:
print(leds_yeah[i], end=",")
else:
print(leds_yeah[i], end="")
print("};", end="")
print()