070_LED_SOS_UP_Strukturen_UserButton

Committer:
itbusch
Date:
Mon Jan 31 16:58:37 2022 +0000
Revision:
0:47be8595eabc
060_LED_SOS_UP_Strukturen_CableSwitch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
itbusch 0:47be8595eabc 1 DigitalOut Boardled(LED1);
itbusch 0:47be8595eabc 2
itbusch 0:47be8595eabc 3 void UP_SOS_kurz (void)
itbusch 0:47be8595eabc 4 {
itbusch 0:47be8595eabc 5 for (int i=0; i<4; i++)
itbusch 0:47be8595eabc 6 {
itbusch 0:47be8595eabc 7 Boardled = 1;
itbusch 0:47be8595eabc 8 thread_sleep_for(500); //Sleep = Warten...
itbusch 0:47be8595eabc 9 Boardled = 0;
itbusch 0:47be8595eabc 10 thread_sleep_for(500); //Sleep = Warten...
itbusch 0:47be8595eabc 11 }
itbusch 0:47be8595eabc 12 }
itbusch 0:47be8595eabc 13
itbusch 0:47be8595eabc 14 void UP_SOS_lang (void)
itbusch 0:47be8595eabc 15 {
itbusch 0:47be8595eabc 16 for (int i=0; i<4; i++)
itbusch 0:47be8595eabc 17 {
itbusch 0:47be8595eabc 18 Boardled = 1;
itbusch 0:47be8595eabc 19 thread_sleep_for(1500); //Sleep = Warten...
itbusch 0:47be8595eabc 20 Boardled = 0;
itbusch 0:47be8595eabc 21 thread_sleep_for(1500); //Sleep = Warten...
itbusch 0:47be8595eabc 22 }
itbusch 0:47be8595eabc 23 }
itbusch 0:47be8595eabc 24