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.
Fork of CPBR_KL46Z_EX1 by
main.cpp@0:5a790410a276, 2017-01-31 (annotated)
- Committer:
- FBSEletronica
- Date:
- Tue Jan 31 18:57:24 2017 +0000
- Revision:
- 0:5a790410a276
- Child:
- 1:7aa6bd33c618
KL46Z example 1 - blink
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FBSEletronica | 0:5a790410a276 | 1 | #include "mbed.h" |
FBSEletronica | 0:5a790410a276 | 2 | |
FBSEletronica | 0:5a790410a276 | 3 | DigitalOut led_green(LED1); |
FBSEletronica | 0:5a790410a276 | 4 | |
FBSEletronica | 0:5a790410a276 | 5 | |
FBSEletronica | 0:5a790410a276 | 6 | int main() { |
FBSEletronica | 0:5a790410a276 | 7 | |
FBSEletronica | 0:5a790410a276 | 8 | while (true) { |
FBSEletronica | 0:5a790410a276 | 9 | led_green = 1; |
FBSEletronica | 0:5a790410a276 | 10 | wait(0.5); |
FBSEletronica | 0:5a790410a276 | 11 | led_green = 0; |
FBSEletronica | 0:5a790410a276 | 12 | wait(0.5); |
FBSEletronica | 0:5a790410a276 | 13 | } |
FBSEletronica | 0:5a790410a276 | 14 | } |