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

Outputs.h

Committer:
OHstin
Date:
2017-04-30
Revision:
6:196a63a3378d

File content as of revision 6:196a63a3378d:

#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