leds/pattern.py

17 lines
285 B
Python
Raw Normal View History

2020-11-08 07:18:12 +00:00
import sys
2020-11-08 07:16:30 +00:00
this = sys.modules[__name__]
def default(index, tick):
return (((index + tick) * 5) % 255, (tick * 42) % 255, (tick * 50) % 255)
def pat(index, tick, previous_values):
return default(index, tick)
def parse(str):
this.encoded = str
print(this.encoded)