def flash_casu(casu): """ Flash the CASU led to allow synchronisation between video data and CASU logs. :type casu: assisipy.casu.Casu """ for _ in range(__NUMBER_FLASHES - 1): casu.set_diagnostic_led_rgb(r=1) time.sleep(__FLASH_LENGTH) casu.diagnostic_led_standby() time.sleep(__FLASH_LENGTH) casu.set_diagnostic_led_rgb(r=1) time.sleep(__FLASH_LENGTH) casu.diagnostic_led_standby()
def flash_led(casu): casu.set_diagnostic_led_rgb(r=1, g=0, b=0) time.sleep(LED_DURATION) casu.set_diagnostic_led_rgb(0, 0, 0)