Matthaeus Vorraber
/
LPC1768_class_exercice_ueberladen
Ueberladen1
main.cpp
- Committer:
- happy_alien
- Date:
- 2020-10-06
- Revision:
- 1:211adb1a2b53
- Parent:
- 0:01aa441bf296
- Child:
- 3:bd21a5fcccf0
File content as of revision 1:211adb1a2b53:
#include "mbed.h" void printStatus(void); class MyClass { public: MyClass(double messwert):_messwert(messwert) { } void printStatus(){ printf("Status is now: %f\n", _messwert); } private: double _messwert; }; MyClass messwert(0.0); int main() { while (1) { messwert.printStatus(); wait_ms(500); } }