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: mbed OneWire DHT22 TSL2561 SSD1306
main.cpp@0:75cfe7e78e4b, 2017-09-11 (annotated)
- 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?
| User | Revision | Line number | New 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 | } |
