Enzo Grimeau
/
GPS_V2
Récupération de trame NMEA
main.cpp@7:37ea12f2b18f, 2020-10-25 (annotated)
- Committer:
- gr91
- Date:
- Sun Oct 25 16:47:59 2020 +0000
- Revision:
- 7:37ea12f2b18f
- Parent:
- 6:a58f18b765cd
- Child:
- 8:23fca4edc6b9
port
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gr91 | 0:3aa4ba0ada56 | 1 | #include "mbed.h" |
gr91 | 2:08d83543c8ec | 2 | // |
gr91 | 7:37ea12f2b18f | 3 | // test led |
gr91 | 3:500dfd62fb76 | 4 | // GR 2020 |
gr91 | 6:a58f18b765cd | 5 | // Universite Paris-Saclay - IUT Cachan |
gr91 | 2:08d83543c8ec | 6 | // |
gr91 | 5:3f68adfd9cf9 | 7 | // |
gr91 | 7:37ea12f2b18f | 8 | #define TEMPO 0.5 |
gr91 | 0:3aa4ba0ada56 | 9 | Serial pc(USBTX, USBRX); |
gr91 | 7:37ea12f2b18f | 10 | DigitalOut led(PA_5); //LED1 |
gr91 | 0:3aa4ba0ada56 | 11 | |
gr91 | 0:3aa4ba0ada56 | 12 | int main() |
gr91 | 0:3aa4ba0ada56 | 13 | { |
gr91 | 7:37ea12f2b18f | 14 | pc.printf("LED clignotante\r\n"); |
gr91 | 0:3aa4ba0ada56 | 15 | led=1; |
gr91 | 0:3aa4ba0ada56 | 16 | while(1) { |
gr91 | 7:37ea12f2b18f | 17 | led = 0; // OFF |
gr91 | 7:37ea12f2b18f | 18 | wait(TEMPO); |
gr91 | 7:37ea12f2b18f | 19 | led = 1; // ON |
gr91 | 7:37ea12f2b18f | 20 | wait(TEMPO); |
gr91 | 0:3aa4ba0ada56 | 21 | } |
gr91 | 0:3aa4ba0ada56 | 22 | } |
gr91 | 7:37ea12f2b18f | 23 |