1 Uebung

Dependencies:   mbed

main.cpp

Committer:
rob117
Date:
2020-10-06
Revision:
4:6bea8ed92ad7
Parent:
3:dbd662e5f8f8
Child:
5:a0a51cfb3981

File content as of revision 4:6bea8ed92ad7:

#include "mbed.h"

class MyClass
{
public:
    MyClass(double messwert) : _messwert(messwert)      //Initialisierungsliste
    {
    }

    void status()                                       //Funktion die den status von Messwert abfragt
    {
        printf("%f\n", _messwert);

    }

private:
    double _messwert;
};


MyClass myclass(0);

int main()
{
    while(1) {

        myclass.status();
        wait_ms(500);
    }
}