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
Diff: Screens/RaspberryPiScreen.h
- Revision:
- 6:196a63a3378d
- Parent:
- 4:c7b0670f96b2
--- a/Screens/RaspberryPiScreen.h Thu Mar 23 10:59:50 2017 +0000 +++ b/Screens/RaspberryPiScreen.h Sun Apr 30 17:19:22 2017 +0000 @@ -92,6 +92,8 @@ if (piCxn == 0) { // pi attempts to connect piCxn = 1; + + // turn on pi LED // initiate connection here connectPi(); @@ -200,20 +202,24 @@ // secondly write the new connection words switch(piCxn) { - // delete "DISCONNECTED" + // write "DISCONNECTED" case 0: tft.printf("DISCONNECTED"); + // turn off PI LED + RPiLED = 0; break; - // delete "CONNECTING..." + // write "CONNECTING..." case 1: tft.printf("CONNECTING..."); + // turn on PI LED + RPiLED = 1; break; - // delete "CONNECTED" + // write "CONNECTED" case 2: tft.printf("CONNECTED"); break; case 3: - // delete "DISCONNECTING..." + // write "DISCONNECTING..." tft.printf("DISCONNECTING..."); break;