Inès Legros / Mbed 2 deprecated _er1_test_vcs

Dependencies:   mbed

Committer:
JPP
Date:
Tue Nov 21 15:33:44 2017 +0000
Revision:
1:17420a732fe8
Parent:
0:1c2d9c93c045
Child:
2:c0afe99e4314
Version 2 : ajout de LED2 dans mains.c; nouveau fichier const.h pour d?finir les constantes de temporisations.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JPP 0:1c2d9c93c045 1 #include "mbed.h"
JPP 1:17420a732fe8 2 #include "const.h"
JPP 0:1c2d9c93c045 3
JPP 0:1c2d9c93c045 4 DigitalOut myled(LED1);
JPP 1:17420a732fe8 5 DigitalOut myled1(LED2);
JPP 0:1c2d9c93c045 6
JPP 1:17420a732fe8 7 int main()
JPP 1:17420a732fe8 8 {
JPP 0:1c2d9c93c045 9 while(1) {
JPP 0:1c2d9c93c045 10 myled = 1;
JPP 1:17420a732fe8 11 myled1 = 0;
JPP 1:17420a732fe8 12 wait(TEMPO1);
JPP 0:1c2d9c93c045 13 myled = 0;
JPP 1:17420a732fe8 14 myled = 1;
JPP 1:17420a732fe8 15 wait(TEMPO2);
JPP 0:1c2d9c93c045 16 }
JPP 0:1c2d9c93c045 17 }