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_F469NI LCD_DISCO_F469NI Shifter2 TS_DISCO_F469NI max31865 mbed
Output.cpp
00001 #include "mbed.h" 00002 #include "Output.h" 00003 #include "TS_DISCO_F469NI.h" 00004 #include "LCD_DISCO_F469NI.h" 00005 00006 extern LCD_DISCO_F469NI lcd; 00007 00008 bool Output::draw_image(const unsigned long* indirizzo_acceso, const unsigned long* indirizzo_spento, bool stato, int off_X, int off_Y) 00009 { 00010 int riga, colonna; 00011 unsigned long contatore=0; 00012 00013 if (stato) { 00014 for (riga=0; riga<70; riga++) { 00015 for ( colonna=0; colonna<70; colonna++) { 00016 lcd.DrawPixel (off_X+colonna, riga+off_Y, *(indirizzo_acceso+contatore)); 00017 contatore++; 00018 } 00019 colonna=0; 00020 } 00021 } 00022 else { 00023 for (riga=0; riga<70; riga++) { 00024 for ( colonna=0; colonna<70; colonna++) { 00025 lcd.DrawPixel (off_X+colonna, riga+off_Y, *(indirizzo_spento+contatore)); 00026 contatore++; 00027 } 00028 colonna=0; 00029 } 00030 } 00031 return 0; 00032 }
Generated on Wed Jul 13 2022 01:30:13 by
