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

Function pwm_freq

python/inputmodule/inputmodule/ledmatrix.py:361–370  ·  view source on GitHub ↗

Display a pattern that's already programmed into the firmware

(dev, freq)

Source from the content-addressed store, hash-verified

359
360
361def pwm_freq(dev, freq):
362 """Display a pattern that's already programmed into the firmware"""
363 if freq == "29kHz":
364 send_command(dev, CommandVals.PwmFreq, [0])
365 elif freq == "3.6kHz":
366 send_command(dev, CommandVals.PwmFreq, [1])
367 elif freq == "1.8kHz":
368 send_command(dev, CommandVals.PwmFreq, [2])
369 elif freq == "900Hz":
370 send_command(dev, CommandVals.PwmFreq, [3])
371
372
373def pattern(dev, p):

Callers 2

main_cliFunction · 0.90
run_guiFunction · 0.90

Calls 1

send_commandFunction · 0.90

Tested by

no test coverage detected