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:
- 29:2146e1bb7b4a
- Parent:
- 28:1a9ba65b41a4
- Child:
- 30:0c89e3f9bf05
--- a/main.cpp Tue Sep 08 14:35:54 2020 +0000
+++ b/main.cpp Tue Sep 08 14:50:19 2020 +0000
@@ -1,17 +1,28 @@
#include "mbed.h"
- DigitalOut led_bleue (LED3);
+ DigitalOut led_rouge (LED4);
+ DigitalOut led_verte (LED2);
DigitalIn BP2(PTC6);
+ DigitalIn BP3 (PTA4);
int main() {
while(1) {
if (BP2==1)
{
- led_bleue = 0;
+ led_rouge = 1;
}
else
{
- led_bleue=1;
+ led_rouge =0;
}
+ if (BP3==1)
+ {
+ led_verte = 1;
+ }
+ else
+ {
+ led_verte = 0;
+ }
+
}
}