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.
Dependencies: HP206C mbed HMC5883L DHT DS1820
main.cpp@0:fa6e7dd26ef2, 2018-09-24 (annotated)
- 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?
| User | Revision | Line number | New 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 | } |
