![](/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-25
- Revision:
- 3:f88d667629e6
- Parent:
- 1:c4f62ef9b5b7
- Child:
- 4:27340b291c09
File content as of revision 3:f88d667629e6:
#include "header.h" /* Embedded Software: Assignment 3 Description: Version 0.2 Aingkaran Suppiah */ DigitalOut myled(LED1); int main() { // initialise 16-bit I/O chip par_port = new MCP23017(p15, p16, 0x40); // set up for the LCD lcd = new WattBob_TextLCD(par_port); // initialise 2*26 char display lcd->cls(); par_port->write_bit(1,BL_BIT); // turn LCD backlight ON lcd->printf("%i , %i", speed.brakevalue, speed.accelvalue); }