Dr. Davis and Dr. Dyer special studies robotics project

Dependencies:   BSP_DISCO_F469NI LCD_DISCO_F469NI TS_DISCO_F469NI mbed Motordriver

Fork of Configurable_Robots by Christopher Eubanks

Revision:
7:0f8c3dfbbb86
Parent:
4:4989e85d16b6
Child:
8:1173b502b316
--- a/Classes/RobotMVC/RobotView.cpp	Tue Feb 07 20:44:52 2017 +0000
+++ b/Classes/RobotMVC/RobotView.cpp	Tue Feb 07 22:45:45 2017 +0000
@@ -0,0 +1,43 @@
+//OU Configurable Robot Project
+//Spring 2017
+//William Bonner
+
+#include "RobotView.h"
+
+//Constructors/Destructors
+RobotView::~RobotView()
+{
+    //#TODO
+}
+RobotView::RobotView()
+{
+    _page = 0;
+}
+
+//Initialize the screen to display the robot menu
+void RobotView::init()
+{
+    _lcd.Clear(LCD_COLOR_BLUE);
+    _lcd.SetBackColor(LCD_COLOR_BLUE);
+    _lcd.SetTextColor(LCD_COLOR_WHITE);
+    update();
+}
+
+//Write the current page to the lcd
+void RobotView::update()
+{
+    switch(_page)
+    {
+        case 0:
+            _lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"Configurable Robot", CENTER_MODE);
+            _lcd.DisplayStringAt(0, LINE(8), (uint8_t *)"University of Oklahoma", CENTER_MODE);
+            break;
+        default:
+            break;
+    }
+}
+//Check for touches on the screen
+void RobotView::listen()
+{
+    //#TODO listen for screen touches
+}
\ No newline at end of file