UoD_ME21001_Group_1_16 / Mbed 2 deprecated Exercise2

Dependencies:   mbed

main.cpp

Committer:
loicb2000
Date:
2019-10-08
Revision:
0:2bddaf2cec4a

File content as of revision 0:2bddaf2cec4a:

#include "mbed.h"

DigitalIn switchstate(p17);
Serial pc(USBTX, USBRX);

int main() {
       
       pc.baud(921600);
       
       while(1) {
           pc.printf("switchstate: %i\r", switchstate.read());
           wait(0.500);
       }    
}