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.
Diff: main.cpp
- Revision:
- 1:8e1033a40696
- Parent:
- 0:b5c75bc6000e
- Child:
- 2:53d8e05db3d9
--- a/main.cpp Mon May 04 12:49:19 2020 +0000 +++ b/main.cpp Mon May 04 13:05:10 2020 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" -Serial pc(USBTX, USBRX,19200); // tx, rx sur les broches associées au bus USB +Serial pc(USBTX, USBRX,9600); // tx, rx sur les broches associées au bus USB DigitalOut led1(LED1); +DigitalOut brka (PTC4); +DigitalOut brkb (PTC12); +DigitalOut dira (PTD3); +DigitalOut dirb (PTD1); + Ticker mon_IT; // on associe l'interface Timeout à l'objet mon_IT void Interruption_timer() { printf("coucou\n"); led1=!led1; + } int main(void)