Simple example to use a Mail object in order to send complex messages from thread1 to thread2. Thread1 generates transition between random RGB colors and sends messages to Thread2. Thread2 displays the requested color on an RGB LED. Data items for messages are stored in a Mail object. Thread1 allocates mailbox slots, Thread2 should free up these slots after using up data stored in the slot.

Dependencies:   mbed mbed-rtos

Committer:
cspista
Date:
Thu Mar 17 13:03:30 2022 +0000
Revision:
0:9f2b4b5956c0
Final version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cspista 0:9f2b4b5956c0 1 https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400