Display a pattern that's already programmed into the firmware
(dev, freq)
| 359 | |
| 360 | |
| 361 | def 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 | |
| 373 | def pattern(dev, p): |
no test coverage detected