first commit

Dependencies:   mbed

Committer:
kafka
Date:
Tue Oct 06 15:38:04 2020 +0000
Revision:
0:8217b9bfb66a
Child:
1:0ab6ec2cda59
initial commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kafka 0:8217b9bfb66a 1 #include "mbed.h"
kafka 0:8217b9bfb66a 2 #include "MyClass.h"
kafka 0:8217b9bfb66a 3
kafka 0:8217b9bfb66a 4 DigitalOut led(LED1);
kafka 0:8217b9bfb66a 5 int main() {
kafka 0:8217b9bfb66a 6 MyClass element1 (23.2);
kafka 0:8217b9bfb66a 7 MyClass element2;
kafka 0:8217b9bfb66a 8 while (1) {
kafka 0:8217b9bfb66a 9 led = !led;
kafka 0:8217b9bfb66a 10 printf("Blink! LED is now %d\n", led.read());
kafka 0:8217b9bfb66a 11 printf("element1 messwert: %lf, element2 messwert: %lf \n", element1.get_wert(), element2.get_wert());
kafka 0:8217b9bfb66a 12 wait_ms(500);
kafka 0:8217b9bfb66a 13 }
kafka 0:8217b9bfb66a 14