Skip to content

Commit bd5264c

Browse files
author
dave
committed
example updated
1 parent 9060fad commit bd5264c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/nano33ble/nano33ble.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ void setup() {
3636
analogDevice.initPin(pwmOutputPin, DIR_OUT);
3737
analogDevice.initPin(analogInputPin, DIR_IN);
3838

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+
3945
// and set up the menu itself, so it starts displaying and accepting input
4046
setupMenu();
4147

0 commit comments

Comments
 (0)