![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
zoeksensor testprogramma
main.cpp
- Committer:
- bjorntukkertje
- Date:
- 2017-06-01
- Revision:
- 0:3595d15dd15c
File content as of revision 0:3595d15dd15c:
#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; } }