Sensor-Watch/launcher/widgets/fake_widget_1.c
2021-10-04 09:52:07 -04:00

38 lines
912 B
C

#include "fake_widget_1.h"
#include "watch.h"
void fake_widget_1_setup(LauncherSettings *settings, void ** context_ptr) {
(void) settings;
*context_ptr = NULL;
}
void fake_widget_1_activate(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}
bool fake_widget_1_loop(LauncherEvent event, LauncherSettings *settings, void *context) {
printf("fake_widget_1_loop\n");
(void) settings;
(void) context;
watch_display_string("W1 d get01", 0);
switch (event.bit.event_type) {
case EVENT_MODE_BUTTON_UP:
launcher_move_to_next_widget();
return false;
case EVENT_LIGHT_BUTTON_UP:
launcher_illuminate_led();
break;
default:
break;
}
return true;
}
void fake_widget_1_resign(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}