![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All tasks complete
Dependencies: mbed MCP23017 mbed-rtos WattBob_TextLCD
main.cpp
- Committer:
- aingks
- Date:
- 2019-03-26
- Revision:
- 4:27340b291c09
- Parent:
- 3:f88d667629e6
- Child:
- 8:3f3f2c2e2046
File content as of revision 4:27340b291c09:
#include "header.h" /* Embedded Software: Assignment 3 Description: Version 0.2 Aingkaran Suppiah */ SDATA speed = SDATA(); CARINFO info = CARINFO(); SIMU_DATA sim = SIMU_DATA(); MCP23017 *par_port = NULL; // pointer to 16-bit parallel I/O object WattBob_TextLCD *display = NULL; // pointer to 2*16 chacater LCD object Mutex simuXS; Mutex speedXS; Mutex carstateXS; int main() { // set up for the LCD par_port = new MCP23017(p9, p10, 0x40); // initialise 16-bit I/O chip display = new WattBob_TextLCD(par_port); // initialise 2*26 char display par_port->write_bit(1,BL_BIT); // turn LCD backlight ON }