idd hw3

Dependencies:   mbed DebounceIn USBDevice PinDetect

Committer:
pgao
Date:
Fri Sep 26 00:23:26 2014 +0000
Revision:
0:84cb4cb4f860
Child:
1:85b6b5d1528e
Child:
3:6b5158c413b9
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pgao 0:84cb4cb4f860 1 #include "mbed.h"
pgao 0:84cb4cb4f860 2
pgao 0:84cb4cb4f860 3 Serial pc(USBTX, USBRX);
pgao 0:84cb4cb4f860 4
pgao 0:84cb4cb4f860 5 AnalogIn accelZ(A0);
pgao 0:84cb4cb4f860 6 AnalogIn accelY(A1);
pgao 0:84cb4cb4f860 7 AnalogIn accelX(A2);
pgao 0:84cb4cb4f860 8
pgao 0:84cb4cb4f860 9 int main() {
pgao 0:84cb4cb4f860 10 while(1) {
pgao 0:84cb4cb4f860 11 pc.printf("%f\n", accelY.read());
pgao 0:84cb4cb4f860 12 }
pgao 0:84cb4cb4f860 13 }