MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / blinking

Function blinking

python/inputmodule/gui/ledmatrix.py:45–55  ·  view source on GitHub ↗

Blink brightness high/off every second. Keeps currently displayed grid

(dev)

Source from the content-addressed store, hash-verified

43
44
45def blinking(dev):
46 """Blink brightness high/off every second.
47 Keeps currently displayed grid"""
48 while True:
49 if is_thread_stopped() or is_dev_disconnected(dev.device):
50 reset_thread()
51 return
52 brightness(dev, 0)
53 time.sleep(0.5)
54 brightness(dev, 200)
55 time.sleep(0.5)
56
57
58def random_eq(dev):

Callers 1

main_cliFunction · 0.90

Calls 4

is_thread_stoppedFunction · 0.90
is_dev_disconnectedFunction · 0.90
reset_threadFunction · 0.90
brightnessFunction · 0.90

Tested by

no test coverage detected