Skip to content

Commit 0d8aa16

Browse files
committed
All C++ examples now recompiled and working for next release.
1 parent c898e65 commit 0d8aa16

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

examples/officialPiPicoTftEncoder/officialPiPicoTftEncoder.emf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"offset": -180,
1212
"divisor": 2,
1313
"unitName": "dB",
14+
"step": 1,
1415
"name": "Volume",
1516
"variableName": "Volume",
1617
"id": 1,
@@ -76,6 +77,7 @@
7677
"offset": -180,
7778
"divisor": 2,
7879
"unitName": "dB",
80+
"step": 1,
7981
"name": "Max On Volume",
8082
"variableName": "SettingsMaxOnVolume",
8183
"id": 5,
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#include "officialPiPicoTftEncoder_menu.h"
2-
// default CPP main file for sketch
32
#include <PlatformDetermination.h>
4-
3+
#include <IoLogging.h>
54
#include <TaskManagerIO.h>
65

6+
// TFT_eSPI setup is "Setup60_RP2040_ILI9341.h".
7+
78
void setup() {
9+
Serial.begin(115200);
10+
while(!Serial);
11+
812
setupMenu();
913
}
1014

@@ -13,11 +17,11 @@ void loop() {
1317
}
1418

1519

16-
void CALLBACK_FUNCTION onRestart(int id) {
17-
// TODO - your menu change code
20+
void CALLBACK_FUNCTION onRestart(int /*id*/) {
21+
serdebugF("Restart selected");
1822
}
1923

2024

2125
void CALLBACK_FUNCTION onVolumeChanged(int id) {
22-
// TODO - your menu change code
26+
serdebugF2("Volume changed ", menuVolume.getCurrentValue());
2327
}

0 commit comments

Comments
 (0)