![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
exercise 1
main.cpp
- Committer:
- happy_alien
- Date:
- 2020-10-06
- Revision:
- 1:211adb1a2b53
- Parent:
- 0:01aa441bf296
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); } }