Matthaeus Vorraber
/
LPC1768_class_exercice_ueberladen
Ueberladen1
main2.cpp
- Committer:
- happy_alien
- Date:
- 2020-10-13
- Revision:
- 3:bd21a5fcccf0
- Parent:
- 2:4ceb0547f2cf
File content as of revision 3:bd21a5fcccf0:
#include "mbed.h" void printStatus(void); class MyClassA { public: MyClassA(int x, bool wahr): _x(x),_wahr(wahr) {} void printStatus() { printf("Status is now: %d,%d\n", _x,_wahr); } int getx(void) { return _x; } private: int _x; bool _wahr; }; MyClassA messwert(15,1); int main() { while (1) { messwert.printStatus(); wait_ms(500); } } int main() { while (1) { messwert.printStatus(); wait_ms(500); } }