![](/media/cache/profiles/dream_vangogh.jpg.50x50_q85.jpg)
NXP Rapid IoT prototyping kit port of Silabs "hungry gecko" smake-like game. https://os.mbed.com/teams/SiliconLabs/code/Hungry_gecko/
Dependencies: lib_sx9500 GraphicsDisplay ColorMemLCD Large_fonts
See a detailed description of this project on Hackster.io . https://www.hackster.io/marcomerli/riotwear-snake-ca6dfc
main.cpp
- Committer:
- batman52
- Date:
- 2019-11-20
- Revision:
- 78:ddf5cff958fa
- Parent:
- 29:0b58d21e87d6
- Child:
- 79:0431b9fd3dc0
File content as of revision 78:ddf5cff958fa:
#include "mbed.h" DigitalOut led_red(LED_RED, 1); // LED1 = LED_RED, 1 --> OFF, 0 --> ON DigitalOut led_blue(LED_BLUE, 1); // LED3 = LED_BLUE, 1 --> OFF, 0 --> ON // main() runs in its own thread in the OS int main() { while (true) { led_red = !led_red; led_blue = !led_red; wait(0.5); } }