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: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed
functions.h
00001 #ifndef FUCTIONS_H 00002 #define FUNCTIONS_H 00003 00004 #include "colors.c" 00005 #include "mbed.h" 00006 extern LCD_DISCO_F746NG lcd; 00007 extern TS_DISCO_F746NG ts; 00008 extern TS_StateTypeDef TS_State; 00009 00010 //Functions// 00011 00012 bool setup_griglia() 00013 { 00014 lcd.Clear(light_sky_blue); 00015 lcd.SetBackColor(light_sky_blue); 00016 lcd.SetTextColor(red); 00017 int i, j; 00018 for (i=0; i<4; i++) { 00019 for ( j=0; j<3; j++) { 00020 lcd.DrawRect (310+50*j, 0+60*i, 50, 60); 00021 } 00022 j=0; 00023 } 00024 //3 rettangoli per ROAST CLEAN STOP 00025 // 20X120 e 20Y80, 20X120 e 90Y150, 20X120 e 160Y220 00026 //lcd.DrawRect (20, 20, 100, 60); //Roast 00027 int riga, colonna, contatore; 00028 for (riga=0; riga<60; riga++) { 00029 for ( colonna=0; colonna<100; colonna++) { 00030 lcd.DrawPixel (20+colonna, 20+ riga, _acRoast[contatore]); 00031 contatore++; 00032 } 00033 colonna=0; 00034 } 00035 //lcd.DrawRect (20, 90, 100, 60); //Clean 00036 contatore=0; 00037 for (riga=0; riga<60; riga++) { 00038 for ( colonna=0; colonna<100; colonna++) { 00039 lcd.DrawPixel (20+colonna, 90+ riga, _acClean[contatore]); 00040 contatore++; 00041 } 00042 colonna=0; 00043 } 00044 //lcd.DrawRect (20, 160, 100, 60); //Stop 00045 contatore=0; 00046 for (riga=0; riga<60; riga++) { 00047 for ( colonna=0; colonna<100; colonna++) { 00048 lcd.DrawPixel (20+colonna, 160+ riga, _acStop[contatore]); 00049 contatore++; 00050 } 00051 colonna=0; 00052 } 00053 return 0; 00054 } 00055 00056 //End of Functions// 00057 #endif
Generated on Tue Jul 12 2022 18:42:44 by
