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.
Dependents: NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator
source/HardwareLPC1768.cpp@2:17746a0e459f, 2017-02-16 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Thu Feb 16 12:16:04 2017 -0500
- Revision:
- 2:17746a0e459f
Fix the rename to HardwareLPC1768
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Maxime Dupuis |
2:17746a0e459f | 1 | #include "HardwareLPC1768.hpp" |
| Maxime Dupuis |
2:17746a0e459f | 2 | |
| Maxime Dupuis |
2:17746a0e459f | 3 | HardwareLPC1768::HardwareLPC1768(DigitalOut led) : |
| Maxime Dupuis |
2:17746a0e459f | 4 | led(led) |
| Maxime Dupuis |
2:17746a0e459f | 5 | { |
| Maxime Dupuis |
2:17746a0e459f | 6 | } |
| Maxime Dupuis |
2:17746a0e459f | 7 | |
| Maxime Dupuis |
2:17746a0e459f | 8 | void HardwareLPC1768::blink() |
| Maxime Dupuis |
2:17746a0e459f | 9 | { |
| Maxime Dupuis |
2:17746a0e459f | 10 | led = 1; |
| Maxime Dupuis |
2:17746a0e459f | 11 | wait(0.5); |
| Maxime Dupuis |
2:17746a0e459f | 12 | led = 0; |
| Maxime Dupuis |
2:17746a0e459f | 13 | wait(0.5); |
| Maxime Dupuis |
2:17746a0e459f | 14 | } |