diff --git a/examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino b/examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino index b210d504..3eac6f9c 100644 --- a/examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino +++ b/examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino @@ -35,11 +35,7 @@ Print& operator<<(Print&o, Menu::prompt&p) { } #endif -#ifdef ARDUINO_SAM_DUE - #define LEDPIN 13 -#else - #define LEDPIN A3 -#endif +#define LEDPIN LED_BUILTIN // define menu colors -------------------------------------------------------- //each color is in the format: @@ -55,13 +51,13 @@ const colorDef colors[] MEMMODE={ //define menu outputs ------------------------------------------------ #define MAX_DEPTH 4 -/*const panel panels[] MEMMODE={{1,1,16,10},{18,1,16,10},{36,1,16,10}}; -navNode* nodes[sizeof(panels)/sizeof(panel)]; -panelsList pList(panels,nodes,sizeof(panels)/sizeof(panel)); -idx_t ansi_tops[MAX_DEPTH]; -ansiSerialOut ansi(Serial,colors,ansi_tops,pList);//the output device, ansi-terminal Cols x Rows -menuOut* outputs[]={&ansi}; -outputsList out(outputs,1);*/ +// const panel panels[] MEMMODE={{1,1,16,10},{18,1,16,10},{36,1,16,10}}; +// navNode* nodes[sizeof(panels)/sizeof(panel)]; +// panelsList pList(panels,nodes,sizeof(panels)/sizeof(panel)); +// idx_t ansi_tops[MAX_DEPTH]; +// ansiSerialOut ansi(Serial,colors,ansi_tops,pList);//the output device, ansi-terminal Cols x Rows +// menuOut* outputs[]={&ansi}; +// outputsList out(outputs,1); MENU_OUTPUTS(out,MAX_DEPTH ,ANSISERIAL_OUT(Serial,colors,{1,1,16,10})//,{18,1,16,10},{36,1,16,10}) @@ -238,11 +234,11 @@ MENU(subMenu,"Sub-Menu",showEvent,anyEvent,noStyle ,EXIT("