Smart Home Controller

Dependencies:   TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG sMotor

Files at this revision

API Documentation at this revision

Comitter:
TwinToe
Date:
Wed Jan 09 12:58:26 2019 +0000
Parent:
2:2f4e4558277c
Commit message:
Mathias skal ha den

Changed in this revision

Draw/Draw.cpp Show annotated file Show diff for this revision Revisions of this file
Draw/Draw.h Show annotated file Show diff for this revision Revisions of this file
F746_GUI.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Draw/Draw.h	Wed Jan 09 12:58:26 2019 +0000
@@ -0,0 +1,5 @@
+class Draw {
+    public:
+    uint8_t StarWars[];
+    uint8_t GetStarWars;
+    };
\ No newline at end of file
--- a/F746_GUI.lib	Wed Jan 09 09:15:41 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/MikamiUitOpen/code/F746_GUI/#50b8f7654c36
--- a/main.cpp	Wed Jan 09 09:15:41 2019 +0000
+++ b/main.cpp	Wed Jan 09 12:58:26 2019 +0000
@@ -1,8 +1,8 @@
 #include "mbed.h"
-#include "stdio.h"
 #include "TS_DISCO_F746NG.h"
 #include "LCD_DISCO_F746NG.h"
 #include "sMotor.h"
+#include "Draw.h"
 
 // Devices
 LCD_DISCO_F746NG lcd;
@@ -11,6 +11,7 @@
 int step_speed = 2200;
 int numstep = 1;
 DigitalOut led(D8);
+Draw draw;
 
 int main()
 {
@@ -71,7 +72,9 @@
         // Button 3
         if ((TS_State.touchDetected) && (TS_State.touchX[0] > 240) && (TS_State.touchX[0] < 320) && (TS_State.touchY[0] > 190 ))
         {
-            
+            lcd.Clear(LCD_COLOR_RED);
+            lcd.DrawBitmap(0, 0, (uint8_t *)draw.GetStarWars());
+            wait(5);
         }
         
         // Button 4