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.
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
Display.h
00001 /************************************************************* 00002 Display the following on the LCD display every 2 seconds 00003 a. Frequency value (show as integer) 00004 b. analogue values (show as integers) 00005 c. digital values 00006 d. Possible error code 00007 **************************************************************/ 00008 00009 void Display(){ 00010 DisplayPin = ! (DisplayPin); //Pin 26 00011 if( Freq<1010 && Freq>490){ 00012 sprintf(Temp, "%4d", Freq); 00013 Write_LCD(Temp,0,2,0); 00014 } 00015 else{ 00016 Write_LCD(" Err",0,2,0); 00017 } 00018 sprintf(Temp, "%3d", Analug1_valu[4]); 00019 Write_LCD(Temp,1,3,0); 00020 00021 sprintf(Temp, "%3d", Analug2_valu[4]); 00022 Write_LCD(Temp,1,10,0); 00023 00024 sprintf(Temp, "%d", Swch1); 00025 Write_LCD(Temp,0,10,0); 00026 00027 sprintf(Temp, "%d", Swch2); 00028 Write_LCD(Temp,0,15,0); 00029 00030 sprintf(Temp, "%d", Error_Code); 00031 Write_LCD(Temp,1,15,0); 00032 //DisplayPin = ! (DisplayPin); 00033 }
Generated on Tue Jul 12 2022 21:34:48 by
