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:
- 3:a19488e21195
- Parent:
- 2:de8cec36a564
- Child:
- 4:fb4dff674d64
File content as of revision 3:a19488e21195:
#include "mbed.h"
InterruptIn KBI_SW2(SW2);
InterruptIn KBI_SW3(SW3);
Serial pc(USBTX, USBRX, 9600);
void IT_SW2()
{
pc.printf("appui sur SW2\n");
}
void RT_SW2()
{
pc.printf("relachement sur SW2\n");
}
void IT_SW3()
{
pc.printf("appui sur SW3\n");
}
void RT_SW3()
{
pc.printf("relachement sur SW3\n");
}
main()
{
KBI_SW2.fall(&IT_SW2);
KBI_SW2.rise(&RT_SW2);
KBI_SW3.fall(&IT_SW3);
KBI_SW3.rise(&RT_SW3);
while (1)
{
}
}