Group 5 Analog Voltage Reader

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI GYRO_DISCO_F429ZI

Revision:
1:bbb4f79100de
Parent:
0:2f53fa259fef
--- a/main.cpp	Tue Dec 04 19:34:29 2018 +0000
+++ b/main.cpp	Thu Dec 06 20:48:47 2018 +0000
@@ -60,7 +60,7 @@
     lcd.SetTextColor(LCD_COLOR_WHITE);
     wait(0.3);
     lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"DISCOVERY BOARD", CENTER_MODE);
-    lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F429ZI", CENTER_MODE);
+    lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F429", CENTER_MODE);
     lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"By: Teddy Sosnowski", CENTER_MODE);
     wait(1);
     lcd.Clear(LCD_COLOR_WHITE);
@@ -71,15 +71,9 @@
 }
 void draw_sin(float location, int x_axis, int input_number)
 {
-    int y_axis = location * 24;
-  //  if (y_axis > 80)
-   //     y_axis = 80;
-        
-   // if (y_axis < -80)
-    //    y_axis = -80;
-        
+    int y_axis = location * 24;      
     y_axis = 180 - y_axis;
-    //Center of 0x0 at pixel 120x180
+    //Center at pixel 120x180 for grid
     if (input_number == 0)
         BSP_LCD_DrawPixel(x_axis, y_axis, LCD_COLOR_RED);
     else