Template code for ELEC1620 mini-project (automotive electronics)

Dependencies:   N5110 ShiftReg Tone mbed

ModeA/ModeA.cpp

Committer:
eencae
Date:
2017-03-13
Revision:
1:76241e21ec61
Parent:
0:d5312060f649

File content as of revision 1:76241e21ec61:

#include "ModeA.h"

void mode_A() {
    
    lcd.clear();
    lcd.printString("Mode A",0,0);
    lcd.refresh();
    wait_ms(250);  // small delay to prevent previous press being detected again

    while (button_a.read() == 0) {
        
        // code goes in here - this acts like the main while(1) loop
        

    }

}