Projet Long pour AGRAL

Dependencies:   mbed OneWire DHT22 TSL2561 SSD1306

Committer:
Pipou
Date:
Mon Sep 11 13:50:21 2017 +0000
Revision:
0:75cfe7e78e4b
Child:
1:1b64ee29ae15
V0 Projet Long

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pipou 0:75cfe7e78e4b 1 #include "mbed.h"
Pipou 0:75cfe7e78e4b 2
Pipou 0:75cfe7e78e4b 3 DigitalOut myled(LED1);
Pipou 0:75cfe7e78e4b 4
Pipou 0:75cfe7e78e4b 5 int main() {
Pipou 0:75cfe7e78e4b 6 while(1) {
Pipou 0:75cfe7e78e4b 7 myled = 1; // LED is ON
Pipou 0:75cfe7e78e4b 8 wait(1.0); // 200 ms
Pipou 0:75cfe7e78e4b 9 myled = 0; // LED is OFF
Pipou 0:75cfe7e78e4b 10 wait(1.0); // 1 sec
Pipou 0:75cfe7e78e4b 11 }
Pipou 0:75cfe7e78e4b 12 }