flipperzero_infrared_test.py 228 B

123456789101112131415
  1. import flipperzero as f0
  2. import time
  3. signal = f0.infrared_receive()
  4. durations = map(lambda v:str(v), signal)
  5. value = ','.join(durations)
  6. f0.canvas_clear()
  7. f0.canvas_set_text(10, 32, value)
  8. f0.canvas_update()
  9. time.sleep(5)