|
14 | 14 | #include "Fonts/FreeSans12pt7b.h" |
15 | 15 |
|
16 | 16 | // Global variable declarations |
17 | | - |
18 | 17 | const ConnectorLocalInfo applicationInfo = { "Factory", "4df3d784-674a-4a3d-bcee-54a49693788e" }; |
| 18 | + |
19 | 19 | StChromaArtDrawable Drawable; |
20 | 20 | GraphicsDeviceRenderer renderer(30, applicationInfo.name, &Drawable); |
21 | 21 | StBspTouchInterrogator touchInterrogator(240, 320); |
22 | 22 | MenuTouchScreenManager touchScreen(&touchInterrogator, &renderer, iotouch::TouchInterrogator::PORTRAIT); |
23 | 23 |
|
24 | 24 | // Global Menu Item declarations |
25 | | - |
26 | 25 | const BooleanMenuInfo minfoConnectivityEnableUSB = { "Enable USB", 10, 8, 1, NO_CALLBACK, NAMING_TRUE_FALSE }; |
27 | 26 | BooleanMenuItem menuConnectivityEnableUSB(&minfoConnectivityEnableUSB, false, NULL); |
28 | 27 | RENDERING_CALLBACK_NAME_INVOKE(fnConnectivityRtCall, backSubItemRenderFn, "Connectivity", -1, NO_CALLBACK) |
@@ -52,12 +51,14 @@ EnumMenuItem menuBeltStatus(&minfoBeltStatus, 0, &menuBeltSpeed); |
52 | 51 | const BooleanMenuInfo minfoPower = { "Power", 6, 0xffff, 1, NO_CALLBACK, NAMING_ON_OFF }; |
53 | 52 | BooleanMenuItem menuPower(&minfoPower, false, &menuBeltStatus); |
54 | 53 |
|
55 | | -// Set up code |
56 | | - |
57 | 54 | void setupMenu() { |
| 55 | + // First we set up eeprom and authentication (if needed). |
| 56 | + |
| 57 | + // Now add any readonly, non-remote and visible flags. |
58 | 58 | menuBeltSpeed.setReadOnly(true); |
59 | 59 | menuBeltStatus.setReadOnly(true); |
60 | 60 |
|
| 61 | + // Code generated by plugins. |
61 | 62 | renderer.setUpdatesPerSecond(10); |
62 | 63 | touchScreen.start(); |
63 | 64 | menuMgr.initWithoutInput(&renderer, &menuPower); |
|
0 commit comments