baba
Fork of HCSR04 by
Revision 1:ed19202e6224, committed 2016-09-29
- Comitter:
- Edgar2016
- Date:
- Thu Sep 29 17:00:34 2016 +0000
- Parent:
- 0:86b2086be101
- Commit message:
- DASADAS
Changed in this revision
hcsr04.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/hcsr04.h Mon Apr 14 08:23:09 2014 +0000 +++ b/hcsr04.h Thu Sep 29 17:00:34 2016 +0000 @@ -19,8 +19,7 @@ //D12 TRIGGER D11 ECHO HCSR04 sensor(D12, D11); int main() { - while(1) { - + while(1) { long distance = sensor.distance(); printf("distanza %d \n",distance); wait(1.0); // 1 sec