Julio G / Mbed 2 deprecated LedStrip

Dependencies:   mbed

Fork of LedStrip_test by Balazs Racz

Revision:
6:6f0f4e6c1e5f
Parent:
5:5a2af711d510
Child:
7:62c9a5483a84
--- a/main.cpp	Sat Sep 21 20:20:17 2013 +0000
+++ b/main.cpp	Sat Sep 21 20:21:24 2013 +0000
@@ -307,6 +307,10 @@
 class MultiDropBucketFillProgram : public Schedulable
 {
 public:
+    MultiDropBucketFillProgram() {
+        supervisor.RegisterProgram(this);
+    }
+
     virtual void Run() {
         int time = global_tick;
         const int kLength = sizeof(google_colors);
@@ -386,6 +390,9 @@
 {
     init_board();
     g_watchdog = &g_watchdog_impl;
+    
+    MultiDropBucketFillProgram multi_drop;
+    
     supervisor.ScheduleProgram();
     run_loop();
 }
\ No newline at end of file