First laboratory uses each of the five routines with your modifications. These routines illustrate digital output, PWM output, and Analog input and output.
main.cpp
- Committer:
- billcooke51
- Date:
- 2018-06-26
- Revision:
- 66:0a43d8aeeb76
- Parent:
- 29:0b58d21e87d6
- Child:
- 67:9015fa015c73
File content as of revision 66:0a43d8aeeb76:
#include "mbed.h" DigitalOut led1(LED1); // main() runs in its own thread in the OS int main() { while (true) { led1 = !led1; wait(0.02); led1 = !led1; wait(0.02); } }