Amaldi / Mbed 2 deprecated Amaldi_20_Exercise_StripLED_ProxSensor_rev_1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
francesco01
Date:
Sat Jan 26 18:21:36 2019 +0000
Parent:
11:ae7f002fcdde
Commit message:
open amaldi

Changed in this revision

StripLed-ProxSensor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/StripLed-ProxSensor.cpp	Sun Dec 09 11:21:26 2018 +0000
+++ b/StripLed-ProxSensor.cpp	Sat Jan 26 18:21:36 2019 +0000
@@ -136,7 +136,7 @@
         
         //++++++++++++++ INIZIO pilota accensione delle strip LED +++++++++++++++++++++++++
         //escludi le misure oltre un range massimo e minimo. le distanze sono espress in [cm]
-        if((fDistance <= 150.0) && (fDistance >= 3.0)) 
+        if((fDistance <= 400.0) && (fDistance >= 3.0)) 
         {
             // se un ostacolo si trova nel range di misura, accendi i LED
             OutRed = 1;