1 Uebung

Dependencies:   mbed

main.cpp

Committer:
rob117
Date:
2020-10-06
Revision:
2:3c3a6f0b11d2
Parent:
1:851c54e0d307
Child:
3:dbd662e5f8f8

File content as of revision 2:3c3a6f0b11d2:

#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);
    }
}