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
Fork of Ticker_3 by
main.cpp
- Committer:
- ajy912
- Date:
- 2017-10-13
- Revision:
- 0:0ba4641adab9
- Child:
- 1:3b84da6d133f
File content as of revision 0:0ba4641adab9:
// Flash an LED while waiting for events
#include "mbed.h"
InterruptIn event(D5);
DigitalOut ledr(D13);
DigitalOut ledg(D11);
void trigger() {
printf("triggered!\n");
ledg =! ledg;
}
int main() {
event.rise(&trigger);
while(1) {
ledr =! ledr;
wait(0.25);
}
}
