aboutsummaryrefslogtreecommitdiffstats
path: root/src/globals.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-05-28 19:17:48 +0200
committerBad Diode <bd@badd10de.dev>2023-05-28 19:17:48 +0200
commit52bdd0d79c77df0a7752fd15ebcc730f9e9796b1 (patch)
tree1efa9654ecdc5a933976bbbb37d9ec18562c1320 /src/globals.c
parent70b7b9f719ab673ff776cfc0f9b7bc67dc88bac1 (diff)
downloadstepper-52bdd0d79c77df0a7752fd15ebcc730f9e9796b1.tar.gz
stepper-52bdd0d79c77df0a7752fd15ebcc730f9e9796b1.zip
Refactor settings into own files
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c
index 8ce79d5..60e64e7 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -17,6 +17,7 @@ u32 last_channel_loc = 0;
17u32 last_pattern_loc = 0; 17u32 last_pattern_loc = 0;
18u32 last_right_col_loc = 0; 18u32 last_right_col_loc = 0;
19u32 last_step_counter = 0; 19u32 last_step_counter = 0;
20bool clear_screen = false;
20 21
21// 22//
22// Color indexes. 23// Color indexes.
@@ -113,3 +114,11 @@ void handle_param_selection_ch1(void);
113void handle_param_selection_ch2(void); 114void handle_param_selection_ch2(void);
114void handle_param_selection_ch3(void); 115void handle_param_selection_ch3(void);
115void handle_param_selection_ch4(void); 116void handle_param_selection_ch4(void);
117
118typedef enum Scene {
119 SCENE_SEQUENCER = 0,
120 SCENE_SETTINGS,
121} Scene;
122
123static Scene scene = SCENE_SETTINGS;
124static Scene next_scene = SCENE_SETTINGS;