meddahi hadj
/
hadjessais
DEUXIEME PROG
flashled.cpp@1:32ebac4d3716, 2015-02-19 (annotated)
- Committer:
- meddahihadj
- Date:
- Thu Feb 19 13:29:00 2015 +0000
- Revision:
- 1:32ebac4d3716
DEUXIEME PROGRAMME
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
meddahihadj | 1:32ebac4d3716 | 1 | #include "mbed.h" |
meddahihadj | 1:32ebac4d3716 | 2 | |
meddahihadj | 1:32ebac4d3716 | 3 | DigitalOut led(LED3); |
meddahihadj | 1:32ebac4d3716 | 4 | |
meddahihadj | 1:32ebac4d3716 | 5 | int flash () { |
meddahihadj | 1:32ebac4d3716 | 6 | while(1) { |
meddahihadj | 1:32ebac4d3716 | 7 | led = 1; |
meddahihadj | 1:32ebac4d3716 | 8 | wait(0.5); |
meddahihadj | 1:32ebac4d3716 | 9 | led = 0; |
meddahihadj | 1:32ebac4d3716 | 10 | wait(0.2); |
meddahihadj | 1:32ebac4d3716 | 11 | } |
meddahihadj | 1:32ebac4d3716 | 12 | } |