Andreas Jensen / Mbed 2 deprecated ELEC2645project

Dependencies:   mbed

Revision:
0:565828c508b3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/checker.cpp	Fri Apr 09 15:29:30 2021 +0000
@@ -0,0 +1,17 @@
+#include "checker.h"
+#include "mbed.h"
+//#include "stm32f413h_discovery_ts.h"
+#include "stm32f413h_discovery_lcd.h"
+
+void Checker::draw_checker() {
+    //draw the coloumn by coloumn leaving 1 row less to have space for points
+    for(int i = 0;i < 10; i++) {
+        for(int i = 0;i < 9; i++) {
+            BSP_LCD_SetTextColor(LCD_COLOR_BLUE)
+            if(i%2){BSP_LCD_SetTextColor(LCD_COLOR_GREEN);}
+            BSP_LCD_FillRect(i, j, i+24, j+24);
+            
+        }
+    }
+    
+}
\ No newline at end of file