University of Plymouth - Stages 1, 2 and 3
/
Task131Solution
Task 1.3.1 Solution
Fork of Task131Solution by
main.cpp
- Committer:
- noutram
- Date:
- 2019-09-10
- Revision:
- 2:66122d84f242
- Parent:
- 0:fed1ab4b2b50
File content as of revision 2:66122d84f242:
#include "mbed.h" //Create an instance of a Serial object called pc //Transmit and receive pins have names USBTX and USBRX Serial pc(USBTX, USBRX); int main() { //Set the baud rate property (bits persecond) pc.baud(9600); //Run in an infinite loop while(1) { //Call the printf method on pc pc.printf("Hello World\n"); //Wait for 1s wait(1.0); } }