diff --git a/PhotoStepper/PhotoStepper.ino b/PhotoStepper/PhotoStepper.ino index 5f5fef6..deb0134 100644 --- a/PhotoStepper/PhotoStepper.ino +++ b/PhotoStepper/PhotoStepper.ino @@ -115,33 +115,16 @@ CHOOSE(chooseTest,chooseMenu,"Choose",doNothing,noEvent,wrapStyle ,VALUE("Last",-1,doNothing,noEvent) ); -//customizing a prompt look! -//by extending the prompt class -class altPrompt:public prompt { -public: - altPrompt(constMEM promptShadow& p):prompt(p) {} - Used printTo(navRoot &root,bool sel,menuOut& out, idx_t idx,idx_t len,idx_t) override { - return out.printRaw(F("special prompt!"),len);; - } -}; - MENU(subMenu,"Sub-Menu",doNothing,anyEvent,wrapStyle ,OP("Sub1",showEvent,enterEvent) ,OP("Sub2",showEvent,enterEvent) ,OP("Sub3",showEvent,enterEvent) - ,altOP(altPrompt,"",showEvent,enterEvent) ,EXIT(" strIn;//buffer size: 2^5 = 32 bytes, eventually use 0 for a single byte +stringIn<0> strIn; serialIn serial(Serial); -// use this commented lines if you want your stringIn object to be used as part or normal menu input -// menuIn* inputsList[]={&serial,&strIn}; -// chainStream in(inputsList); -// NAVROOT(nav,mainMenu,MAX_DEPTH,in,out); NAVROOT(nav,mainMenu,MAX_DEPTH,serial,out); result alert(menuOut& o,idleEvent e) {