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: Bsp_01_01.cpp
- Revision:
- 1:39334592cf7e
- Parent:
- 0:835a7e06080a
--- a/Bsp_01_01.cpp Sat Jan 11 08:09:27 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-//LED 1 100 Hz. 1 Zyklus (Ein/Aus) 100 x in der Sekunde (5ms ein 5 ms aus)
-// LED 2 50 Hz 1 Zyklus 50 x in der Sekunde
-
-#include "mbed.h"
-
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
-int val = 2;
-
-int main() {
- while (1) {
- led1 = !led1;
- //printf("Blink! LED is now %d\n", led.read());
- wait_ms(1000);
- val ++;
- printf("Val = %d\n", val);
-
-
- if ((val % 4)== 0)
- {
- led2 = 1;
- }
- else
- {
- led2=0;
- }
-
-
- //led1.read();
-
-
- }
-}
\ No newline at end of file