1 Uebung

Dependencies:   mbed

main.cpp

Committer:
rob117
Date:
2020-10-06
Revision:
0:928e720c71da
Child:
1:851c54e0d307

File content as of revision 0:928e720c71da:

#include "mbed.h"

DigitalOut led(LED1);

class MyClass{
public:
    MyClass(double messwert) : _messwert(messwert) {
        _messwert = 0;
    }
private:
    double _messwert;
};


int main() {
    while (1) {
        led = !led;
        printf("Blink! LED is now %d\n", led.read());

        wait_ms(500);
    }
}