bjorn grotenhuis
/
sensorzoeker
zoeksensor testprogramma
Revision 0:3595d15dd15c, committed 2017-06-01
- Comitter:
- bjorntukkertje
- Date:
- Thu Jun 01 09:40:07 2017 +0000
- Commit message:
- zoeksensor test programma
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jun 01 09:40:07 2017 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +AnalogIn sensor(A5); +PwmOut led (D2); +Serial pc(USBTX, USBRX); + +float a ; +int main () { + + while (1) { + a= sensor; + pc.printf("%f\n", a); + wait_ms(200); + led = 0.9; + } + } + + + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jun 01 09:40:07 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/794e51388b66 \ No newline at end of file