LED crazy blink

Dependencies:   mbed

Committer:
Corinthians
Date:
Wed Nov 19 07:03:47 2014 +0000
Revision:
2:6fbcc988ac6a
Parent:
1:ffc2292c68db
blink rate change;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Corinthians 0:c68f197c8608 1 #include "mbed.h"
Corinthians 0:c68f197c8608 2
Corinthians 0:c68f197c8608 3 DigitalOut myled(LED1);
Corinthians 0:c68f197c8608 4
Corinthians 0:c68f197c8608 5 int main() {
Corinthians 0:c68f197c8608 6 while(1) {
Corinthians 1:ffc2292c68db 7 myled = 0;
Corinthians 2:6fbcc988ac6a 8 wait(0.05);
Corinthians 2:6fbcc988ac6a 9 myled = 1;
Corinthians 2:6fbcc988ac6a 10 wait(0.05);
Corinthians 0:c68f197c8608 11 }
Corinthians 0:c68f197c8608 12 }