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.
main.cpp
- Committer:
- shalab
- Date:
- 2014-02-28
- Revision:
- 0:0c662a5aeb15
- Child:
- 1:08ed9f1ccd06
File content as of revision 0:0c662a5aeb15:
#include "mbed.h" #define toggle(a) {a=a^1;} DigitalOut led1(LED1); Serial pc(USBTX, USBRX); class Student { public: Student(){ pc.printf("Student()\r\n"); } ~Student(){ pc.printf("~Student()\r\n"); } void foo() { pc.printf("foo()\r\n"); } }; int main() { { Student s; s.foo(); } while (1) { toggle(led1); wait(1); }; }