We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9060fad commit bd5264cCopy full SHA for bd5264c
examples/nano33ble/nano33ble.ino
@@ -36,6 +36,12 @@ void setup() {
36
analogDevice.initPin(pwmOutputPin, DIR_OUT);
37
analogDevice.initPin(analogInputPin, DIR_IN);
38
39
+ // Here we tell the encoder not to wrap (we don't technically need to do this as false is the default.
40
+ // Wrap means go from maxValue back to 0, or from 0 back to maxValue. On is true, Off (default) is false.
41
+ menuMgr.setUseWrapAroundEncoder(false);
42
+ // We can also define overrides for a particular menu item
43
+ menuMgr.addEncoderWrapOverride(menuAnalogReadingsOutputPWM, true);
44
+
45
// and set up the menu itself, so it starts displaying and accepting input
46
setupMenu();
47
0 commit comments