Skip to content

Commit b70b4c1

Browse files
author
dave
committed
#77 Make the example use interrupt switch support.
1 parent cfb58ff commit b70b4c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/colorTftEthernet32/colorTftEthernet.emf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lastEdited": {
3-
"seconds": 1603533153,
3+
"seconds": 1606647553,
44
"nanos": 0
55
},
66
"codeOptions": {
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"name": "INTERRUPT_SWITCHES",
24-
"latestValue": "false",
24+
"latestValue": "true",
2525
"subsystem": "INPUT"
2626
},
2727
{

examples/colorTftEthernet32/colorTftEthernet32_menu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RENDERING_CALLBACK_NAME_INVOKE(fnStatusRtCall, backSubItemRenderFn, "Status", -1
4949
BackMenuItem menuBackStatus(fnStatusRtCall, &menuVoltA0);
5050
SubMenuItem menuStatus(&minfoStatus, &menuBackStatus, &menuConnectivity);
5151
RENDERING_CALLBACK_NAME_INVOKE(fnRGBRtCall, rgbAlphaItemRenderFn, "RGB", 16, onRgbChanged)
52-
Rgb32MenuItem menuRGB(26, fnRGBRtCall, false,NULL);
52+
Rgb32MenuItem menuRGB(26, fnRGBRtCall, false, NULL);
5353
const BooleanMenuInfo minfoTempCheck = { "Temp Check", 13, 9, 1, NO_CALLBACK, NAMING_ON_OFF };
5454
BooleanMenuItem menuTempCheck(&minfoTempCheck, false, &menuRGB);
5555
const AnyMenuInfo minfoHiddenItem = { "Hidden item", 16, 0xFFFF, 0, NO_CALLBACK };
@@ -87,7 +87,7 @@ void setupMenu() {
8787
gfx.initR(INITR_BLACKTAB);
8888
gfx.setRotation(1);
8989
renderer.setGraphicsDevice(&gfx, &colorConfig);
90-
switches.initialise(io8574, true);
90+
switches.initialiseInterrupt(io8574, true);
9191
menuMgr.initForEncoder(&renderer, &menuVoltage, 7, 6, 5);
9292
remoteServer.begin(&server, &applicationInfo);
9393
}

0 commit comments

Comments
 (0)