Skip to content

Commit d0e3883

Browse files
committed
example updates
1 parent dea77d7 commit d0e3883

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

examples/arduino32/picoAw9523LcdEncoder/picoAw9523LcdEncoder.emf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"functionName": "onBacklight",
2121
"readOnly": false,
2222
"localOnly": false,
23-
"visible": true
23+
"visible": true,
24+
"staticDataInRAM": false
2425
}
2526
},
2627
{
@@ -37,7 +38,8 @@
3738
"eepromAddress": 4,
3839
"readOnly": false,
3940
"localOnly": false,
40-
"visible": true
41+
"visible": true,
42+
"staticDataInRAM": false
4143
}
4244
},
4345
{
@@ -53,7 +55,8 @@
5355
"eepromAddress": 12,
5456
"readOnly": false,
5557
"localOnly": false,
56-
"visible": true
58+
"visible": true,
59+
"staticDataInRAM": false
5760
}
5861
},
5962
{
@@ -67,7 +70,8 @@
6770
"eepromAddress": -1,
6871
"readOnly": false,
6972
"localOnly": false,
70-
"visible": true
73+
"visible": true,
74+
"staticDataInRAM": false
7175
}
7276
},
7377
{
@@ -81,7 +85,8 @@
8185
"functionName": "onRunMe",
8286
"readOnly": false,
8387
"localOnly": false,
84-
"visible": true
88+
"visible": true,
89+
"staticDataInRAM": false
8590
}
8691
}
8792
],
@@ -216,6 +221,7 @@
216221
"namingRecursive": true,
217222
"saveToSrc": false,
218223
"useCppMain": false,
224+
"usingSizedEEPROMStorage": false,
219225
"eepromDefinition": "",
220226
"authenticatorDefinition": "",
221227
"projectIoExpanders": [

examples/arduino32/picoAw9523LcdEncoder/picoAw9523LcdEncoder_menu.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,25 @@
1515
const ConnectorLocalInfo applicationInfo = { "picoAw9523LcdEncoder", "b547b450-b96d-4d14-bd2d-47b21787f54a" };
1616
AW9523IoAbstraction iodev_aw9523(0x58, 15);
1717
IoAbstractionRef ioexp_aw9523 = &iodev_aw9523;
18-
LiquidCrystal lcd(8, 10, 11, 12, 13, 14);
18+
LiquidCrystal lcd(8, 9, 10, 11, 12, 13, 14);
1919
LiquidCrystalRenderer renderer(lcd, 20, 4);
2020

2121
// Global Menu Item declarations
2222
const AnyMenuInfo minfoMoreRunMe = { "Run me", 5, 0xffff, 0, onRunMe };
23-
ActionMenuItem menuMoreRunMe(&minfoMoreRunMe, NULL);
24-
RENDERING_CALLBACK_NAME_INVOKE(fnMoreRtCall, backSubItemRenderFn, "More", -1, NO_CALLBACK)
23+
ActionMenuItem menuMoreRunMe(&minfoMoreRunMe, NULL, INFO_LOCATION_PGM);
2524
const SubMenuInfo minfoMore = { "More", 4, 0xffff, 0, NO_CALLBACK };
26-
BackMenuItem menuBackMore(fnMoreRtCall, &menuMoreRunMe);
27-
SubMenuItem menuMore(&minfoMore, &menuBackMore, NULL);
25+
BackMenuItem menuBackMore(&minfoMore, &menuMoreRunMe, INFO_LOCATION_PGM);
26+
SubMenuItem menuMore(&minfoMore, &menuBackMore, NULL, INFO_LOCATION_PGM);
2827
RENDERING_CALLBACK_NAME_INVOKE(fnTextRtCall, textItemRenderFn, "Text", 12, NO_CALLBACK)
2928
TextMenuItem menuText(fnTextRtCall, "", 3, 5, &menuMore);
3029
RENDERING_CALLBACK_NAME_INVOKE(fnLargeNumRtCall, largeNumItemRenderFn, "LargeNum", 4, NO_CALLBACK)
3130
EditableLargeNumberMenuItem menuLargeNum(fnLargeNumRtCall, LargeFixedNumber(6, 0, 222U, 0U, false), 2, false, &menuText);
3231
const AnalogMenuInfo minfoBacklight = { "Backlight", 1, 2, 255, onBacklight, 0, 1, "" };
33-
AnalogMenuItem menuBacklight(&minfoBacklight, 100, &menuLargeNum);
32+
AnalogMenuItem menuBacklight(&minfoBacklight, 100, &menuLargeNum, INFO_LOCATION_PGM);
3433

3534
void setupMenu() {
3635
// First we set up eeprom and authentication (if needed).
37-
36+
setSizeBasedEEPROMStorageEnabled(false);
3837
// Code generated by plugins.
3938
lcd.setIoAbstraction(ioexp_aw9523);
4039
lcd.begin(20, 4);

examples/arduino32/picoAw9523LcdEncoder/picoAw9523LcdEncoder_menu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <EditableLargeNumberMenuItem.h>
1919
#include <IoAbstractionWire.h>
2020
#include <IoAbstraction.h>
21+
#include <EepromItemStorage.h>
2122
#include "tcMenuLiquidCrystal.h"
2223

2324
// variables we declare that you may need to access

0 commit comments

Comments
 (0)