Queue Assignment
There are two user push buttons on the EK-TM4C123GXL LaunchPad Board. Write a program to light the LEDs:
- Green LED when SW1 is pressed.
- Blue LED when SW2 is pressed.
- Red LED when no key.
Howto:
- Import atomthreads Template Project into CCS workspace
- Rename the Project as atomthreads_queue_one
- Using Queue(s) send message whenever a key is pressed
- Read from the Queue and accordingly light the LEDs
- Implement key scanning task as periodic task
- Take care of key de-bouncing
Recent Comments