#ifndef __show_c_ #define __show_c_ #include "menu.c" /******************************************************************************/ /** * Main menu - inicial */ void showMainMenu() { //redraw int w; String start=" "; if( inited )start="Find"; if( redraw ) { Serial.println("MAIN"); showButtons("Init",start," ","Help"); lcdPrint(" W E L C O M E ",0,0); lcdPrint(" ",0,1); lcdPrint("Crane robot 1.0",0,2); lcdPrint(" by Jan Dvorak",0,3); redraw=false; } //read buttons if( bt1.isMomentaryPressed() ) { actualMenu=helpMenu; helpLine=0; redraw=true; } if( bt4.isMomentaryPressed() ) { actualMenu=initMenu; redraw=true; } if( bt3.isMomentaryPressed() && inited ) { actualMenu=findMenu; redraw=true; } } /******************************************************************************/ /** * Help */ void showHelpMenu() { //redraw int l=13; String up=" "; if( helpLine>0)up='^'; String down=" ";if( helpLine