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@1:5bb0b616cdaa, 2022-02-04 (annotated)
- Committer:
- itbusch
- Date:
- Fri Feb 04 08:50:19 2022 +0000
- Revision:
- 1:5bb0b616cdaa
- Parent:
- 0:47be8595eabc
- Child:
- 2:4adcd7abf622
070_LED_SOS_UP_Strukturen_UserButton
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| itbusch | 0:47be8595eabc | 1 | /* mbed BuschA, 60_LED_SOS */ |
| itbusch | 0:47be8595eabc | 2 | #include "mbed.h" |
| itbusch | 0:47be8595eabc | 3 | #include "UP_SOS.h" |
| itbusch | 0:47be8595eabc | 4 | //Initialisiere Ausgangspin und Variable |
| itbusch | 1:5bb0b616cdaa | 5 | DigitalIn User_Button(PC_13); //PullUp auf Board, PC13 |
| itbusch | 0:47be8595eabc | 6 | |
| itbusch | 0:47be8595eabc | 7 | int main() |
| itbusch | 0:47be8595eabc | 8 | { |
| itbusch | 0:47be8595eabc | 9 | |
| itbusch | 0:47be8595eabc | 10 | while (true) |
| itbusch | 0:47be8595eabc | 11 | { |
| itbusch | 1:5bb0b616cdaa | 12 | if (User_Button == false) |
| itbusch | 0:47be8595eabc | 13 | { |
| itbusch | 0:47be8595eabc | 14 | UP_SOS_kurz(); //Funktionsaufruf... |
| itbusch | 0:47be8595eabc | 15 | UP_SOS_lang(); |
| itbusch | 0:47be8595eabc | 16 | UP_SOS_kurz(); |
| itbusch | 0:47be8595eabc | 17 | thread_sleep_for(2000); //Sleep = Warten... |
| itbusch | 0:47be8595eabc | 18 | } |
| itbusch | 0:47be8595eabc | 19 | } |
| itbusch | 0:47be8595eabc | 20 | } |