Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main2.cpp
- Committer:
- happy_alien
- Date:
- 2020-10-06
- Revision:
- 2:4ceb0547f2cf
File content as of revision 2:4ceb0547f2cf:
#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); } }