Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Menu.cpp
00001 #include "header.h" 00002 00003 extern int menu; 00004 00005 // Menu Counter 00006 void menuscroll(void){ 00007 if (menu<4){ 00008 menu++;} 00009 if (menu==3){ 00010 menu=0;} 00011 } 00012 00013 // Select 00014 void Select(void){ 00015 if (menu==0){ 00016 lcd.background(0xFFFFFF); 00017 Graphic(); 00018 } 00019 if (menu==1){ 00020 lcd.background(0x000000); 00021 Precise(); 00022 } 00023 if (menu==2){ 00024 lcd.background(0x800080); 00025 calibrate(); 00026 00027 } 00028 } 00029 00030 //Menu 00031 void menuscreen(void){ 00032 while(1){ 00033 lcd.cls(); 00034 but1.fall(&menuscroll); 00035 if(menu==0){ 00036 lcd.locate(0,14); 00037 lcd.printf("Graphical Mode"); 00038 } 00039 if(menu==1){ 00040 lcd.locate(0,14); 00041 lcd.printf("Precision Mode"); 00042 } 00043 if(menu==2){ 00044 lcd.locate(0,14); 00045 lcd.printf("Calibration Mode",0xE00000); 00046 } 00047 00048 // Select Button 00049 but2.fall(&Select); 00050 } 00051 }
Generated on Mon Aug 8 2022 08:50:07 by
1.7.2