Hocine Boudieb
/
mbed_server
LEDTEST
main.cpp@0:01c98b5646da, 22 months ago (annotated)
- Committer:
- pocs
- Date:
- Mon Dec 05 12:58:15 2022 +0000
- Revision:
- 0:01c98b5646da
led
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pocs | 0:01c98b5646da | 1 | #include "mbed.h" |
pocs | 0:01c98b5646da | 2 | |
pocs | 0:01c98b5646da | 3 | DigitalOut myled(LED1); |
pocs | 0:01c98b5646da | 4 | |
pocs | 0:01c98b5646da | 5 | int main() { |
pocs | 0:01c98b5646da | 6 | while(1) { |
pocs | 0:01c98b5646da | 7 | myled = 1; |
pocs | 0:01c98b5646da | 8 | wait(0.2); |
pocs | 0:01c98b5646da | 9 | myled = 0; |
pocs | 0:01c98b5646da | 10 | wait(0.2); |
pocs | 0:01c98b5646da | 11 | } |
pocs | 0:01c98b5646da | 12 | } |