idd hw3
Dependencies: mbed DebounceIn USBDevice PinDetect
Diff: main.cpp
- Revision:
- 0:84cb4cb4f860
- Child:
- 1:85b6b5d1528e
- Child:
- 3:6b5158c413b9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Sep 26 00:23:26 2014 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); + +AnalogIn accelZ(A0); +AnalogIn accelY(A1); +AnalogIn accelX(A2); + +int main() { + while(1) { + pc.printf("%f\n", accelY.read()); + } +}