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.
Diff: main.cpp
- Revision:
- 0:51cacd8fe300
diff -r 000000000000 -r 51cacd8fe300 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Feb 23 19:09:05 2022 +0000 @@ -0,0 +1,29 @@ +/* mbed BuschA, */ +#include "mbed.h" +#include "UP_SOS.h" +//Initialisiere Ausgangspin und Variable +InterruptIn TasteS1(PA_10); //PullUp auf Board; sonst PA_1 + + +void ISR_SOS (void) //ISRotine.. + { + Blink(); + } + +void IR_init (void) +{ + //TasteS1.mode(PullUp); // Pull-Up auf Hardware (PullDown) + TasteS1.fall(&ISR_SOS); //steigende Flanke = rise + TasteS1.enable_irq(); //IR aktivieren +} + +int main() +{ +IR_init(); + + while (true) + { + } +} + +