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
main.cpp
- Committer:
- marques_rascol
- Date:
- 2020-09-30
- Revision:
- 0:618c97ce1b93
- Child:
- 1:bd98c63b7cf5
File content as of revision 0:618c97ce1b93:
#include "mbed.h"
DigitalIn BP_SW2(SW2);
DigitalIn BP_SW3(SW3);
Serial pc(USBTX, USBRX, 9600);
int main ()
{
while (1) {
if (BP_SW2==0) {
pc.printf("appui sur SW2 \n");
wait(0.5);
}
if (BP_SW3==0) {
pc.printf("appui sur SW3 \n");
wait(0.5);
}
}
}