Light Show library for organic, calm, light display.

Dependencies:   BLE_API mbed nRF51822

Fork of mbed_blinky by Mbed

Revision:
15:ee94af1f90a0
Parent:
14:e8a1fe69b048
Child:
16:810a1bbb320a
--- a/main.cpp	Sun Oct 11 06:49:34 2015 +0000
+++ b/main.cpp	Sun Oct 11 07:00:37 2015 +0000
@@ -8,7 +8,7 @@
 #define PI 3.1416
 #define HYSTERESIS_QUANTITY  PI
 
-unsigned long seed = 47;
+unsigned long seed = 515;
 
  typedef unsigned char byte;
  typedef unsigned int uint;
@@ -35,17 +35,17 @@
     
     hashable = hash(m + seed);
     write_me = hashable/100.0;
-    red.write(write_me);
+    red.write(hashable >= 50);
     pc.printf("r, g, b: %f\t", write_me);
 
     hashable = hash(m + seed);
     write_me = hashable/100.0;
-    green.write(write_me);
+    green.write(hashable >= 50);
     pc.printf("%f\t", write_me);
     
     hashable = hash(m + seed);
     write_me = hashable/100.0;
-    blue.write(write_me);
+    blue.write(hashable >= 50);
     pc.printf("%f\n", write_me);
 }
  
@@ -56,7 +56,7 @@
     for(int i = 0; i < calibrationTime; i++){
       pc.printf(".");
       identify(calibrationTime);
-      wait(.25);
+      wait(.5);
       }
     pc.printf(" done\n");
     pc.printf("SENSOR ACTIVE\n");