Chris Styles
/
app-board-USB-printf
Example program to print 100 samples of pot1 on the mbed Application Board to the USB serial port
main.cpp
- Committer:
- chris
- Date:
- 2013-04-18
- Revision:
- 0:e762099aba67
File content as of revision 0:e762099aba67:
#include "mbed.h" AnalogIn pot1(p19); DigitalOut myled(LED1); int main() { for (int i=0; i < 100 ; i++) { printf("%.2f\n",pot1.read()); wait(0.05); myled = !myled; } myled = 1; }