Dependencies:   mbed lwip

Revision:
1:7354a0bac81a
Parent:
0:c88750da21d0
--- a/main.cpp	Sat Sep 19 00:14:43 2009 +0000
+++ b/main.cpp	Tue Sep 22 11:55:03 2009 +0000
@@ -1,4 +1,4 @@
-#include "Objects.h"
+#include "DemoBoard.h"
 
 /*
  * This project used and ultrasonic range finder to blend and RGB LED from
@@ -17,10 +17,10 @@
         float normalised = (2.0/d) - 0.02;
         
         // Set the red component to get brighter the closer the range
-        rgb.red(norm);
+        rgb.red(normalised);
         
         // Set the red component to get brighter the further the range
-        rgb.green(1.0-norm);
+        rgb.green(1.0-normalised);
 
         // For completeness, print the measured range 
         pc.printf("Range is %.1f cm\n",(float)srf);