This program consists of the software developed for the ELEC5870M Individual Project. It runs on the mbed LPC1768. It uses the mbed RTOS to perform the following tasks: - Implements intuitive GUI with buttons, LCD TFT Display and LEDs. - Serial Communication with the RPi - I2C communication with INA219 voltage current sensors - Power control at the USB ports

Dependencies:   Adafruit_GFX Adafruit_ST7735 INA219 MODSERIAL MbedJSONValue mbed-rtos mbed

Revision:
6:196a63a3378d
Parent:
3:7666de697752
--- a/Screens/ViewLogScreen.h	Thu Mar 23 10:59:50 2017 +0000
+++ b/Screens/ViewLogScreen.h	Sun Apr 30 17:19:22 2017 +0000
@@ -21,6 +21,7 @@
     int changeScreen;
     uint16_t backgroundColor;   // stores the background color
     bool showDetails;   // knows when it is time to show a record's details
+    bool scroll;
 };
 
 ViewLogScreen::ViewLogScreen(uint16_t bgColor)
@@ -45,7 +46,12 @@
     while (changeScreen == 0) {
         //updateTile();
         //wait_ms(250);
-       Thread::wait(250);   
+       Thread::wait(250);  
+       
+       if (scroll){
+            list->scroll();
+            scroll = false;   
+        } 
 
         if(showDetails && (numberOfRecords>0)) {
             // first deactivate the buttons
@@ -161,13 +167,15 @@
 
         case SCROLLBUTTON:
             // scroll to the next option
-            list->scroll();
+            //list->scroll();
+            scroll = true;
             break;
 
         case ENTERBUTTON:
             // navigate to the selected option
             //changeScreen = ListController::getCurrentOption();
             showDetails = true;
+            break;
 
         default:
             // do nothing