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: Outputs.h
- Revision:
- 6:196a63a3378d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Outputs.h Sun Apr 30 17:19:22 2017 +0000 @@ -0,0 +1,13 @@ +#ifndef OUTPUTS_H +#define OUTPUTS_H + +#include "Adafruit_ST7735.h" + +Adafruit_ST7735 tft(p11, p12, p13, p16, p14, p15); // MOSI, MISO, SCLK, SSEL, TFT_DC, TFT_RST +DigitalOut RPiLED(p30); // LED to show RPi is active +DigitalOut utilityLED(p29); // LED to show Utility Port is active +DigitalOut batteryOneLowLED(p26); // LED to show Battery One voltage is low +DigitalOut batteryTwoLowLED(p25); // LED to show Battery Two voltage is low +//DigitalOut loggingLED(p24); // LED to show logging is active + +#endif \ No newline at end of file