Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LedStrip_test by
Diff: main.cpp
- Revision:
- 6:6f0f4e6c1e5f
- Parent:
- 5:5a2af711d510
- Child:
- 7:62c9a5483a84
diff -r 5a2af711d510 -r 6f0f4e6c1e5f main.cpp --- 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