cagdas d
/
_uebung_demirtas_06102020
first commit
Diff: main.cpp
- Revision:
- 0:8217b9bfb66a
- Child:
- 1:0ab6ec2cda59
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 06 15:38:04 2020 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include "MyClass.h" + +DigitalOut led(LED1); +int main() { + MyClass element1 (23.2); + MyClass element2; + while (1) { + led = !led; + printf("Blink! LED is now %d\n", led.read()); + printf("element1 messwert: %lf, element2 messwert: %lf \n", element1.get_wert(), element2.get_wert()); + wait_ms(500); + } +