Example code displaying how to use and implement the mbed RTOS along with a simple state machine used to capture button presses.

Dependencies:   mbed

Fork of mbed-rtos by mbed official

Committer:
gelmes
Date:
Thu Feb 25 16:54:54 2016 +0000
Revision:
105:d7ee57473fdb
Finished Simple Color Changing LED. Used Push Button State Machine and Created two threads, one for LED pulses and one for Button State Machine.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gelmes 105:d7ee57473fdb 1 #ifndef COLOR_H
gelmes 105:d7ee57473fdb 2 #define COLOR_H
gelmes 105:d7ee57473fdb 3 class Color
gelmes 105:d7ee57473fdb 4 {
gelmes 105:d7ee57473fdb 5 public:
gelmes 105:d7ee57473fdb 6 float r;
gelmes 105:d7ee57473fdb 7 float g;
gelmes 105:d7ee57473fdb 8 float b;
gelmes 105:d7ee57473fdb 9 Color(float red, float green, float blue);
gelmes 105:d7ee57473fdb 10
gelmes 105:d7ee57473fdb 11 };
gelmes 105:d7ee57473fdb 12
gelmes 105:d7ee57473fdb 13
gelmes 105:d7ee57473fdb 14 #endif