Mathieu Moneyron / Mbed 2 deprecated projetS1

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Committer:
MathieuM
Date:
Mon Sep 24 06:44:21 2018 +0000
Revision:
0:fa6e7dd26ef2
Child:
13:67a3109de055
Child:
33:2a6476c33e74
first commit

Who changed what in which revision?

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