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.
main.cpp@1:9a79c225efd9, 2020-09-28 (annotated)
- Committer:
 - riziki_rascol
 - Date:
 - Mon Sep 28 10:08:51 2020 +0000
 - Revision:
 - 1:9a79c225efd9
 - Parent:
 - 0:a7f545fa42d2
 
equation logique;
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| riziki_rascol | 0:a7f545fa42d2 | 1 | #include "mbed.h" | 
| riziki_rascol | 0:a7f545fa42d2 | 2 | |
| riziki_rascol | 0:a7f545fa42d2 | 3 | DigitalOut Led_rouge(LED1); | 
| riziki_rascol | 0:a7f545fa42d2 | 4 | DigitalOut Led_verte(LED2); | 
| riziki_rascol | 0:a7f545fa42d2 | 5 | DigitalOut Led_bleue(LED3); | 
| riziki_rascol | 0:a7f545fa42d2 | 6 | DigitalIn BP1(D3); | 
| riziki_rascol | 0:a7f545fa42d2 | 7 | DigitalIn BP2(D2); | 
| riziki_rascol | 1:9a79c225efd9 | 8 | DigitalIn BP3(SW3); | 
| riziki_rascol | 0:a7f545fa42d2 | 9 | |
| riziki_rascol | 0:a7f545fa42d2 | 10 | int main() | 
| riziki_rascol | 0:a7f545fa42d2 | 11 | { | 
| riziki_rascol | 0:a7f545fa42d2 | 12 | |
| riziki_rascol | 0:a7f545fa42d2 | 13 | while (1) { | 
| riziki_rascol | 1:9a79c225efd9 | 14 | Led_rouge=!BP2&&BP3||!BP1&&BP3||BP1&&BP2&&!BP3; | 
| riziki_rascol | 1:9a79c225efd9 | 15 | Led_verte=!BP2&&!BP3||BP1&&!BP3||!BP1&&BP2&&BP3; | 
| riziki_rascol | 1:9a79c225efd9 | 16 | Led_bleue=BP1&&BP2||!BP1&&!BP2; | 
| riziki_rascol | 0:a7f545fa42d2 | 17 | } | 
| riziki_rascol | 0:a7f545fa42d2 | 18 | } |