Bochud Maurice
/
Essai_Led
Essai sur les Led
main.cpp@0:03ee02521233, 2014-06-20 (annotated)
- Committer:
- Mbochud
- Date:
- Fri Jun 20 21:08:26 2014 +0000
- Revision:
- 0:03ee02521233
- Child:
- 1:2ba669406814
Changement de la fr?quence
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mbochud | 0:03ee02521233 | 1 | #include "mbed.h" |
Mbochud | 0:03ee02521233 | 2 | |
Mbochud | 0:03ee02521233 | 3 | DigitalOut myled(LED1); |
Mbochud | 0:03ee02521233 | 4 | |
Mbochud | 0:03ee02521233 | 5 | int main() { |
Mbochud | 0:03ee02521233 | 6 | while(1) { |
Mbochud | 0:03ee02521233 | 7 | myled = 1; |
Mbochud | 0:03ee02521233 | 8 | wait(0.5); |
Mbochud | 0:03ee02521233 | 9 | myled = 0; |
Mbochud | 0:03ee02521233 | 10 | wait(0.5); |
Mbochud | 0:03ee02521233 | 11 | } |
Mbochud | 0:03ee02521233 | 12 | } |