![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
teste1
main.cpp@0:72caabe6de9a, 2018-05-10 (annotated)
- Committer:
- lazarocamargo
- Date:
- Thu May 10 11:15:58 2018 +0000
- Revision:
- 0:72caabe6de9a
teste1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lazarocamargo | 0:72caabe6de9a | 1 | #include "mbed.h" |
lazarocamargo | 0:72caabe6de9a | 2 | |
lazarocamargo | 0:72caabe6de9a | 3 | DigitalOut myled(LED1); |
lazarocamargo | 0:72caabe6de9a | 4 | |
lazarocamargo | 0:72caabe6de9a | 5 | int main() { |
lazarocamargo | 0:72caabe6de9a | 6 | while(1) { |
lazarocamargo | 0:72caabe6de9a | 7 | myled = 1; // LED is ON |
lazarocamargo | 0:72caabe6de9a | 8 | wait(0.2); // 200 ms |
lazarocamargo | 0:72caabe6de9a | 9 | myled = 0; // LED is OFF |
lazarocamargo | 0:72caabe6de9a | 10 | wait(1.0); // 1 sec |
lazarocamargo | 0:72caabe6de9a | 11 | } |
lazarocamargo | 0:72caabe6de9a | 12 | } |