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:
- 0:618c97ce1b93
- Child:
- 1:bd98c63b7cf5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Sep 30 12:55:12 2020 +0000
@@ -0,0 +1,20 @@
+#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);
+ }
+
+ }
+}
\ No newline at end of file