rework IrDA demo, add face to display test file

This commit is contained in:
Joey Castillo
2024-12-16 17:14:44 -05:00
parent cdb92fb2d2
commit dce2187ec1
5 changed files with 164 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ bool irda_demo_face_loop(movement_event_t event, void *context) {
movement_force_led_on(0, 48, 0);
}
char buf[14];
snprintf(buf, 11, "IR%2d%c%c%c%c%c%c", bytes_read, data[0], data[1], data[2], data[3], data[4], data[5]);
snprintf(buf, 11, "IR%2d%c%c%c%c%c%c", bytes_read, data[1], data[2], data[3], data[4], data[5], data[6]);
watch_clear_display();
watch_display_text(WATCH_POSITION_FULL, buf);
data[31] = 0;