File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
examples/officialPiPicoTftEncoder Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1111 "offset": -180,
1212 "divisor": 2,
1313 "unitName": "dB",
14+ "step": 1,
1415 "name": "Volume",
1516 "variableName": "Volume",
1617 "id": 1,
7677 "offset": -180,
7778 "divisor": 2,
7879 "unitName": "dB",
80+ "step": 1,
7981 "name": "Max On Volume",
8082 "variableName": "SettingsMaxOnVolume",
8183 "id": 5,
Original file line number Diff line number Diff line change 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+
78void 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
2125void CALLBACK_FUNCTION onVolumeChanged(int id) {
22- // TODO - your menu change code
26+ serdebugF2("Volume changed ", menuVolume.getCurrentValue());
2327}
You can’t perform that action at this time.
0 commit comments