
On board RBG
main.cpp
- Committer:
- zatharv
- Date:
- 2022-05-20
- Revision:
- 0:a10e99570f59
File content as of revision 0:a10e99570f59:
#include "mbed.h" DigitalOut red(LED1); DigitalOut green(LED2); DigitalOut blue(LED3); int main() { while(1) { blue = 1; red = 0; wait(1); red = 1; green = 0; wait(1); green = 1; blue = 0; wait(1); } }