aboutsummaryrefslogtreecommitdiff
path: root/data/menus/Submenu03.toml
diff options
context:
space:
mode:
authorNicolas Schodet2024-08-27 23:42:19 +0200
committerNicolas Schodet2024-08-27 23:49:35 +0200
commit317b6f892ff3ee844cf7224daf36ccc7a8ebb8ba (patch)
treef032c0247ef3ce1e878eb8de60a437f7f7f86730 /data/menus/Submenu03.toml
parent5c4d2f2fc85823293cf521f602ae2cda458a2e56 (diff)
Generate source files from readable data files
Reverse the operation from previous commit, now use the readable data files to generate source header files. This opens the door for future improvement of the data format to allow compression for example. Now Python is needed to build the firmware, with Pillow module (Python Imaging Library).
Diffstat (limited to 'data/menus/Submenu03.toml')
-rw-r--r--data/menus/Submenu03.toml419
1 files changed, 419 insertions, 0 deletions
diff --git a/data/menus/Submenu03.toml b/data/menus/Submenu03.toml
new file mode 100644
index 0000000..b33ea20
--- /dev/null
+++ b/data/menus/Submenu03.toml
@@ -0,0 +1,419 @@
+format = "menu"
+item_pixels_x = 24
+item_pixels_y = 24
+
+[[items]]
+item_id = 1
+function_index = 10
+function_parameter = 11
+file_load_no = 0
+next_menu = 1
+icon_text = "Temperature `C"
+icon_image_no = 15
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 2
+function_index = 10
+function_parameter = 12
+file_load_no = 0
+next_menu = 1
+icon_text = "Temperature `F"
+icon_image_no = 16
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 3
+function_index = 10
+function_parameter = 2
+file_load_no = 0
+next_menu = 1
+icon_text = "Sound dB"
+icon_image_no = 2
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 4
+function_index = 10
+function_parameter = 3
+file_load_no = 0
+next_menu = 1
+icon_text = "Sound dBA"
+icon_image_no = 3
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 5
+function_index = 10
+function_parameter = 4
+file_load_no = 0
+next_menu = 1
+icon_text = "Reflected light"
+icon_image_no = 4
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 6
+function_index = 10
+function_parameter = 5
+file_load_no = 0
+next_menu = 1
+icon_text = "Ambient light"
+icon_image_no = 5
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 7
+function_index = 10
+function_parameter = 8
+file_load_no = 0
+next_menu = 1
+icon_text = "Motor Rotations"
+icon_image_no = 9
+
+[items.flags]
+leave_background = true
+
+[[items]]
+item_id = 8
+function_index = 10
+function_parameter = 7
+file_load_no = 0
+next_menu = 1
+icon_text = "Motor Degrees"
+icon_image_no = 8
+
+[items.flags]
+leave_background = true
+
+[[items]]
+item_id = 9
+function_index = 10
+function_parameter = 6
+file_load_no = 0
+next_menu = 1
+icon_text = "Touch"
+icon_image_no = 7
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 10
+function_index = 10
+function_parameter = 9
+file_load_no = 0
+next_menu = 1
+icon_text = "UltraSonic inch"
+icon_image_no = 11
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 11
+function_index = 10
+function_parameter = 10
+file_load_no = 0
+next_menu = 1
+icon_text = "UltraSonic cm"
+icon_image_no = 12
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 12
+function_index = 10
+function_parameter = 13
+file_load_no = 0
+next_menu = 1
+icon_text = "Color"
+icon_image_no = 17
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 13
+function_index = 10
+function_parameter = 238
+file_load_no = 0
+next_menu = 1
+icon_text = "Done"
+icon_image_no = 49
+
+[items.flags]
+leave_background = true
+
+[[items]]
+item_id = 17
+function_index = 10
+function_parameter = 18
+file_load_no = 0
+next_menu = 1
+icon_text = "Port 1"
+icon_image_no = 18
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 33
+function_index = 10
+function_parameter = 19
+file_load_no = 0
+next_menu = 1
+icon_text = "Port 2"
+icon_image_no = 19
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 49
+function_index = 10
+function_parameter = 20
+file_load_no = 0
+next_menu = 1
+icon_text = "Port 3"
+icon_image_no = 20
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 65
+function_index = 10
+function_parameter = 21
+file_load_no = 0
+next_menu = 1
+icon_text = "Port 4"
+icon_image_no = 21
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 23
+function_index = 10
+function_parameter = 22
+file_load_no = 0
+next_menu = 1
+icon_text = "Port A"
+icon_image_no = 22
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 39
+function_index = 10
+function_parameter = 23
+file_load_no = 0
+next_menu = 1
+icon_text = "Port B"
+icon_image_no = 23
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 55
+function_index = 10
+function_parameter = 24
+file_load_no = 0
+next_menu = 1
+icon_text = "Port C"
+icon_image_no = 24
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 24
+function_index = 10
+function_parameter = 22
+file_load_no = 0
+next_menu = 1
+icon_text = "Port A"
+icon_image_no = 22
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 40
+function_index = 10
+function_parameter = 23
+file_load_no = 0
+next_menu = 1
+icon_text = "Port B"
+icon_image_no = 23
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 56
+function_index = 10
+function_parameter = 24
+file_load_no = 0
+next_menu = 1
+icon_text = "Port C"
+icon_image_no = 23
+
+[items.flags]
+skip_this_mother_id = 1
+leave_background = true
+
+[[items]]
+item_id = 29
+function_index = 10
+function_parameter = 247
+file_load_no = 0
+next_menu = 1
+icon_text = " "
+icon_image_no = 0
+
+[items.flags]
+auto_press_enter = true
+
+[[items]]
+item_id = 273
+function_index = 10
+function_parameter = 242
+file_load_no = 0
+next_menu = 0
+icon_text = " "
+icon_image_no = 0
+
+[items.flags]
+auto_press_enter = true
+back_three_times = true
+exit_load_pointer = 13
+
+[[items]]
+item_id = 279
+function_index = 10
+function_parameter = 242
+file_load_no = 0
+next_menu = 0
+icon_text = " "
+icon_image_no = 0
+
+[items.flags]
+auto_press_enter = true
+back_three_times = true
+exit_load_pointer = 13
+
+[[items]]
+item_id = 280
+function_index = 10
+function_parameter = 242
+file_load_no = 0
+next_menu = 0
+icon_text = " "
+icon_image_no = 0
+
+[items.flags]
+auto_press_enter = true
+back_three_times = true
+exit_load_pointer = 13
+
+[[items]]
+item_id = 285
+function_index = 10
+function_parameter = 248
+file_load_no = 0
+next_menu = 2
+icon_text = "Run"
+icon_image_no = 50
+
+[items.flags]
+back_twice = true
+leave_background = true
+exit_calls_with_ff = true
+
+[[items]]
+item_id = 4381
+function_index = 10
+function_parameter = 241
+file_load_no = 0
+next_menu = 0
+icon_text = "Main menu"
+icon_image_no = 55
+
+[items.flags]
+enter_leaves_menufile = true
+exit_disable = true
+
+[[items]]
+item_id = 8477
+function_index = 10
+function_parameter = 250
+file_load_no = 0
+next_menu = 2
+icon_text = "Save"
+icon_image_no = 31
+
+[items.flags]
+exit_disable = true
+
+[[items]]
+item_id = 74013
+function_index = 10
+function_parameter = 237
+file_load_no = 0
+next_menu = 0
+icon_text = "Yes"
+icon_image_no = 49
+
+[items.flags]
+leave_background = true
+enter_leaves_menufile = true
+
+[[items]]
+item_id = 139549
+function_index = 0
+function_parameter = 0
+file_load_no = 0
+next_menu = 0
+icon_text = "No"
+icon_image_no = 48
+
+[items.flags]
+enter_act_as_exit = true
+leave_background = true
+exit_calls = true