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:
- JES
- Date:
- 2014-10-30
- Revision:
- 0:fff331d0f22e
File content as of revision 0:fff331d0f22e:
#include "mbed.h"
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
DigitalOut led4(LED4);
Ticker tick;
BusOut Leds(LED1, LED2, LED3, LED4);
volatile int countUp =0;
void teller()
{
countUp++;
if (countUp>=16)
countUp = 0;
}
int main()
{
tick.attach(&teller, 2.0);
while(1) {
Leds = countUp;
}
}