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:
- 28:1a9ba65b41a4
- Parent:
- 27:b80950a0e3e0
- Child:
- 29:2146e1bb7b4a
--- a/main.cpp Tue Sep 08 14:08:59 2020 +0000
+++ b/main.cpp Tue Sep 08 14:35:54 2020 +0000
@@ -1,12 +1,17 @@
#include "mbed.h"
- DigitalOut myled(D3);
+ DigitalOut led_bleue (LED3);
+ DigitalIn BP2(PTC6);
int main() {
while(1) {
- myled = 1;
- wait(0.5);
- myled = 0;
- wait(1.5);
+ if (BP2==1)
+ {
+ led_bleue = 0;
+ }
+ else
+ {
+ led_bleue=1;
+ }
}
}