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 FXOS8700CQQQ
main.cpp@0:7a611d531256, 2019-03-05 (annotated)
- Committer:
- OmarAlebiary
- Date:
- Tue Mar 05 17:39:20 2019 +0000
- Revision:
- 0:7a611d531256
Initial commit for the project
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| OmarAlebiary | 0:7a611d531256 | 1 | #include "mbed.h" |
| OmarAlebiary | 0:7a611d531256 | 2 | |
| OmarAlebiary | 0:7a611d531256 | 3 | DigitalOut gpo(D0); |
| OmarAlebiary | 0:7a611d531256 | 4 | DigitalOut led(LED_RED); |
| OmarAlebiary | 0:7a611d531256 | 5 | |
| OmarAlebiary | 0:7a611d531256 | 6 | int main() |
| OmarAlebiary | 0:7a611d531256 | 7 | { |
| OmarAlebiary | 0:7a611d531256 | 8 | while (true) { |
| OmarAlebiary | 0:7a611d531256 | 9 | gpo = !gpo; // toggle pin |
| OmarAlebiary | 0:7a611d531256 | 10 | led = !led; // toggle led |
| OmarAlebiary | 0:7a611d531256 | 11 | wait(0.2f); |
| OmarAlebiary | 0:7a611d531256 | 12 | } |
| OmarAlebiary | 0:7a611d531256 | 13 | } |