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
Diff: main.cpp
- Revision:
- 3:a19488e21195
- Parent:
- 2:de8cec36a564
- Child:
- 4:fb4dff674d64
--- a/main.cpp Wed Sep 30 13:06:07 2020 +0000
+++ b/main.cpp Wed Sep 30 13:25:59 2020 +0000
@@ -1,5 +1,6 @@
#include "mbed.h"
InterruptIn KBI_SW2(SW2);
+InterruptIn KBI_SW3(SW3);
Serial pc(USBTX, USBRX, 9600);
void IT_SW2()
@@ -7,9 +8,28 @@
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)
{