music mixer code
Dependencies: mbed wave_player mbed-rtos SimpleRGB 4DGL-uLCD-SE PinDetect
Diff: main.cpp
- Revision:
- 2:c64bfb83fe76
- Parent:
- 1:ff69d2d97a2c
- Child:
- 3:641770225c44
--- a/main.cpp Mon Oct 10 01:18:11 2016 +0000 +++ b/main.cpp Mon Oct 10 22:47:38 2016 +0000 @@ -4,7 +4,7 @@ #define SECOND 1000 // used with threads -/* 1 init/declare +/* 1 init/declare */ Ticker first; Ticker second; @@ -27,14 +27,14 @@ led3 = !led3; } -void fourth() { +void four() { led4 = !led4; } -*/// - 1 +// - 1 -/* 2 init/declare */ +/* 2 init/declare // lcd thread void uLCD_reboot_thread(void const *args) { @@ -94,25 +94,25 @@ Thread::wait(9 * SECOND); } } -// - 2 +*/// - 2 int main() { - /* 1 calls + /* 1 calls */ led1 = 1, led2 = 1, led3 = 1, led4 = 1; first.attach(&one, 1.0); // attach the function and when to call it second.attach(&two, 2.0); third.attach(&three, 3.0); fourth.attach(&four, 4.0); - */// - 1 + // - 1 - /* 2 calls */ + /* 2 calls Thread thread2(uLCD_reboot_thread); Thread thread3(uLCD_status_thread); Thread thread4(rainbow_led_thread); - // - 2 + */// - 2 while(true) {