Mirza Mesic
/
mbed_lektion1_v1
855
Diff: main.cpp
- Revision:
- 0:da5f57a822a5
diff -r 000000000000 -r da5f57a822a5 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 18 18:24:12 2019 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalOut led(LED1); + + +int main() { + + uint8_t variable = 0; + + led = !led; + printf("Blink! LED is now %d\n", led.read()); + scanf("%d", &variable); + printf("Hello World und der wert der Variable: %d\n",variable); + wait_ms(5); + +}