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.
main.cpp
- Committer:
- Kojiro
- Date:
- 2014-04-11
- Revision:
- 0:5193eafa81b6
- Child:
- 1:ea47912f9749
File content as of revision 0:5193eafa81b6:
#include "mbed.h" BusOut leds(P1_13, P1_14, P1_22, P0_17, P0_18, P0_19, P1_15, P0_1); void rotate(); int main() { while(1) { rotate(); } } void rotate() { volatile uint8_t i; for(i = 0x00; i < 8; i++) { leds = 1 << i; wait(0.125); } }