interesting
Dependencies: mbed
main.cpp@1:9f1d7a316755, 2017-11-29 (annotated)
- Committer:
- DeanArm7
- Date:
- Wed Nov 29 22:11:46 2017 +0000
- Revision:
- 1:9f1d7a316755
- Parent:
- 0:bb088e8d11ad
stuff
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DeanArm7 | 0:bb088e8d11ad | 1 | #include "mbed.h" |
DeanArm7 | 0:bb088e8d11ad | 2 | |
DeanArm7 | 0:bb088e8d11ad | 3 | AnalogIn end_in(p15); |
DeanArm7 | 0:bb088e8d11ad | 4 | Serial pc(USBTX, USBRX); // tx, rx |
DeanArm7 | 0:bb088e8d11ad | 5 | |
DeanArm7 | 1:9f1d7a316755 | 6 | int main() { |
DeanArm7 | 1:9f1d7a316755 | 7 | float end_test=0; |
DeanArm7 | 0:bb088e8d11ad | 8 | while(1) { |
DeanArm7 | 1:9f1d7a316755 | 9 | wait(1); |
DeanArm7 | 0:bb088e8d11ad | 10 | end_test = end_in; |
DeanArm7 | 1:9f1d7a316755 | 11 | pc.printf("%f\n\r",end_test); |
DeanArm7 | 0:bb088e8d11ad | 12 | } |
DeanArm7 | 0:bb088e8d11ad | 13 | } |