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
Diff: Output/Output.cpp
- Revision:
- 0:c980456a5562
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Output/Output.cpp Wed May 30 14:59:27 2018 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "Output.h"
+#include "TS_DISCO_F469NI.h"
+#include "LCD_DISCO_F469NI.h"
+
+extern LCD_DISCO_F469NI lcd;
+
+bool Output::draw_image(const unsigned long* indirizzo_acceso, const unsigned long* indirizzo_spento, bool stato, int off_X, int off_Y)
+{
+int riga, colonna;
+unsigned long contatore=0;
+
+ if (stato) {
+ for (riga=0; riga<70; riga++) {
+ for ( colonna=0; colonna<70; colonna++) {
+ lcd.DrawPixel (off_X+colonna, riga+off_Y, *(indirizzo_acceso+contatore));
+ contatore++;
+ }
+ colonna=0;
+ }
+ }
+ else {
+ for (riga=0; riga<70; riga++) {
+ for ( colonna=0; colonna<70; colonna++) {
+ lcd.DrawPixel (off_X+colonna, riga+off_Y, *(indirizzo_spento+contatore));
+ contatore++;
+ }
+ colonna=0;
+ }
+ }
+return 0;
+}
\ No newline at end of file