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.
Dependencies: mbed
Fork of HelloWorld by
main.cpp
- Committer:
- bbi22
- Date:
- 2017-01-11
- Revision:
- 3:a420ee3bbe5c
- Parent:
- 2:891e0c33df62
File content as of revision 3:a420ee3bbe5c:
#include "mbed.h"
DigitalOut myleds [] = {LED1, LED2, LED3, LED4};
Serial pc(USBTX, USBRX);
int main() {
while(1) {
for(int i = 0 ; i < 4 ; i++)
myleds[i] = 1;
pc.printf("Allume!\r\n");
wait(0.2);
for(int i = 0 ; i < 4 ; i++)
myleds[i] = 0;
pc.printf("Ferme!\r\n");
wait(0.2);
}
}
