From e5d127d62b3382acd0e0211d7685620ac99f6d6a Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Sun, 6 Feb 2022 18:20:59 +0100 Subject: [PATCH] reorder menu, so it makes more sense on screen (looks erratic in source, of course). --- PhotoStepper/PhotoStepper.ino | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/PhotoStepper/PhotoStepper.ino b/PhotoStepper/PhotoStepper.ino index 5906bf6..6f4f3aa 100644 --- a/PhotoStepper/PhotoStepper.ino +++ b/PhotoStepper/PhotoStepper.ino @@ -72,6 +72,9 @@ void lcd_print(int line, String string) { } // === +// Order of menu entries looks chaotic. It makes sense on screen. +// This is because serial IO (which is used since ArduinoMenu doesn't support +// analog keypad) doesn't implement setFieldMode(). result enter_jog() { Serial.println("enter_jog()"); @@ -99,11 +102,11 @@ TOGGLE(bLcdBlackout, setLcdBlackout, "LCD Blackout: ", doNothing, noEvent, wrapS MENU(configuration, "Configuration", doNothing, anyEvent, wrapStyle ,FIELD(tSettle, "tSettle", "ms", 0, 2000, 100, 10, doNothing, noEvent, wrapStyle) - ,FIELD(tFocus, "tFocus", "ms", 0, 2000, 500, 10, doNothing, noEvent, wrapStyle) - ,FIELD(tShutter, "tShutter", "ms", 0, 2000, 500, 10, doNothing, noEvent, wrapStyle) - ,SUBMENU(setReturn) - ,SUBMENU(setLcdBlackout) ,EXIT("