Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- xavier_majorel
- Date:
- 2020-09-28
- Revision:
- 36:a112aa79d726
- Parent:
- 35:11db50049561
File content as of revision 36:a112aa79d726:
#include "mbed.h" BusOut LED_RGB(LED3,LED2,LED1); BusIn nibble(SW3,D2,D3); int main() { while(1) { switch(nibble) { case 1: LED_RGB =5 ; break; case 0: LED_RGB =3 ; break; case 3: LED_RGB =6 ; break; case 2: LED_RGB =0 ; break; case 5: LED_RGB =4 ; break; case 4: LED_RGB =2 ; break; case 7: LED_RGB =1 ; break; case 6: LED_RGB =7 ; break; } } }