diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-05 18:01:26 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-05 18:03:59 -0400 |
commit | 12ee9221354c863bddb21a076dd3e3bdface3c67 (patch) | |
tree | da9a89f7ae97c6029630da64e1ba6bec708c0c4b /launcher/widgets | |
parent | 0f349cb52e7436303f61a3dd2dde2f40d3dc05c3 (diff) | |
download | Sensor-Watch-12ee9221354c863bddb21a076dd3e3bdface3c67.tar.gz Sensor-Watch-12ee9221354c863bddb21a076dd3e3bdface3c67.tar.bz2 Sensor-Watch-12ee9221354c863bddb21a076dd3e3bdface3c67.zip |
remove fake / placeholder widgets
Diffstat (limited to 'launcher/widgets')
-rw-r--r-- | launcher/widgets/fake_widget_1.c | 37 | ||||
-rw-r--r-- | launcher/widgets/fake_widget_1.h | 18 | ||||
-rw-r--r-- | launcher/widgets/fake_widget_2.c | 37 | ||||
-rw-r--r-- | launcher/widgets/fake_widget_2.h | 18 |
4 files changed, 0 insertions, 110 deletions
diff --git a/launcher/widgets/fake_widget_1.c b/launcher/widgets/fake_widget_1.c deleted file mode 100644 index bdc964e2..00000000 --- a/launcher/widgets/fake_widget_1.c +++ /dev/null @@ -1,37 +0,0 @@ -#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; -} diff --git a/launcher/widgets/fake_widget_1.h b/launcher/widgets/fake_widget_1.h deleted file mode 100644 index d033b49a..00000000 --- a/launcher/widgets/fake_widget_1.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef FAKE_WIDGET_1_H_ -#define FAKE_WIDGET_1_H_ - -#include "launcher.h" - -void fake_widget_1_setup(LauncherSettings *settings, void ** context_ptr); -void fake_widget_1_activate(LauncherSettings *settings, void *context); -bool fake_widget_1_loop(LauncherEvent event, LauncherSettings *settings, void *context); -void fake_widget_1_resign(LauncherSettings *settings, void *context); - -#define fake_widget_1 { \ - fake_widget_1_setup, \ - fake_widget_1_activate, \ - fake_widget_1_loop, \ - fake_widget_1_resign, \ -} - -#endif // FAKE_WIDGET_1_H_
\ No newline at end of file diff --git a/launcher/widgets/fake_widget_2.c b/launcher/widgets/fake_widget_2.c deleted file mode 100644 index 46772222..00000000 --- a/launcher/widgets/fake_widget_2.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "fake_widget_2.h" -#include "watch.h" - -void fake_widget_2_setup(LauncherSettings *settings, void ** context_ptr) { - (void) settings; - *context_ptr = NULL; -} - -void fake_widget_2_activate(LauncherSettings *settings, void *context) { - (void) settings; - (void) context; -} - -bool fake_widget_2_loop(LauncherEvent event, LauncherSettings *settings, void *context) { - printf("fake_widget_2_loop\n"); - (void) settings; - (void) context; - watch_display_string("W1 d get02", 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_2_resign(LauncherSettings *settings, void *context) { - (void) settings; - (void) context; -} diff --git a/launcher/widgets/fake_widget_2.h b/launcher/widgets/fake_widget_2.h deleted file mode 100644 index cf01969d..00000000 --- a/launcher/widgets/fake_widget_2.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef FAKE_WIDGET_2_H_ -#define FAKE_WIDGET_2_H_ - -#include "launcher.h" - -void fake_widget_2_setup(LauncherSettings *settings, void ** context_ptr); -void fake_widget_2_activate(LauncherSettings *settings, void *context); -bool fake_widget_2_loop(LauncherEvent event, LauncherSettings *settings, void *context); -void fake_widget_2_resign(LauncherSettings *settings, void *context); - -#define fake_widget_2 { \ - fake_widget_2_setup, \ - fake_widget_2_activate, \ - fake_widget_2_loop, \ - fake_widget_2_resign, \ -} - -#endif // FAKE_WIDGET_2_H_
\ No newline at end of file |