blob: bdc964e20ee022eaeb8fbc2a86d67e9fb1abd7f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#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;
}
|