Code sensor IR

Dependencies:   BSP_DISCO_F746NG

Revision:
0:8c1b74ecac29
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/view.h	Thu Jun 25 16:51:20 2020 +0000
@@ -0,0 +1,29 @@
+#ifndef VIEW_H
+#define VIEW_H
+#include "mbed.h"
+#include "button.h"
+#include "stm32746g_discovery_lcd.h"
+#include <list>
+
+#define SCREENWIDTH 480
+#define SCREENHEIGHT 272
+
+class View
+{
+public:
+    View(int width = SCREENWIDTH, int height = SCREENHEIGHT, uint32_t bgColor = LCD_COLOR_WHITE);
+    void contain(int x, int y);
+    void draw();
+    int *i;
+    ~View();
+    void drawImage(int offsetX, int offsetY);
+
+private :
+    int16_t m_width = SCREENWIDTH;
+    int16_t m_height = SCREENHEIGHT;
+    uint32_t m_bgColor = LCD_COLOR_WHITE;
+    list<Button *> m_buttonList;
+
+};
+
+#endif
\ No newline at end of file