lab3_part2
Dependencies: mbed-rtos mbed 4DGL-uLCD-SE SDFileSystem wave_player
Dependents: 4180_Lab3_rtos_basic FINAL_PROJECT_GAMMA_PROTECTOR
Fork of rtos_basic by
Revision 7:49bfd42cbf6f, committed 2015-10-01
- Comitter:
- ldeng31
- Date:
- Thu Oct 01 19:02:10 2015 +0000
- Parent:
- 6:209f4db62daf
- Child:
- 8:8eb653dc6571
- Commit message:
- Lab3_part2
Changed in this revision
--- a/main.cpp Tue Jun 04 16:01:32 2013 +0100 +++ b/main.cpp Thu Oct 01 19:02:10 2015 +0000 @@ -1,21 +1,44 @@ #include "mbed.h" #include "rtos.h" - -DigitalOut led1(LED1); -DigitalOut led2(LED2); + +PwmOut Speaker(p26); -void led2_thread(void const *args) { +PwmOut RGBLED_r(p23); +PwmOut RGBLED_g(p22); +PwmOut RGBLED_b(p21); + +void ulcd1_thread(void const *args) { while (true) { - led2 = !led2; + + } +} + +void ulcd2_thread(void const *args) { + while (true) { + + } +} + +void led_thread(void const *args) { + while (true) { + RGBLED_r = 1.0; Thread::wait(1000); } } + +void Speaker_thread(void const *args) { + while (true) { + + } +} int main() { - Thread thread(led2_thread); + Thread thread(ulcd1_thread); + Thread thraed(ulcd2_thread); + Thread thread(led_thread); + Thread thread(Speaker_thread); while (true) { - led1 = !led1; Thread::wait(500); } }
--- a/mbed-rtos.lib Tue Jun 04 16:01:32 2013 +0100 +++ b/mbed-rtos.lib Thu Oct 01 19:02:10 2015 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/mbed_official/code/mbed-rtos/ \ No newline at end of file +https://mbed.org/users/mbed_official/code/mbed-rtos/#d7bd06319118
--- a/mbed.bld Tue Jun 04 16:01:32 2013 +0100 +++ b/mbed.bld Thu Oct 01 19:02:10 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/ \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa \ No newline at end of file