gavno1

Dependencies:   mbed

Committer:
Mikchel
Date:
Sun May 03 15:43:02 2015 +0000
Revision:
0:85243f2dfd7a
polnoe gavno

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mikchel 0:85243f2dfd7a 1 #include "mbed.h"
Mikchel 0:85243f2dfd7a 2
Mikchel 0:85243f2dfd7a 3 DigitalOut myled(LED1);
Mikchel 0:85243f2dfd7a 4
Mikchel 0:85243f2dfd7a 5 int main() {
Mikchel 0:85243f2dfd7a 6 while(1) {
Mikchel 0:85243f2dfd7a 7 myled = 1; // LED is ON
Mikchel 0:85243f2dfd7a 8 wait(0.2); // 200 ms
Mikchel 0:85243f2dfd7a 9 myled = 0; // LED is OFF
Mikchel 0:85243f2dfd7a 10 wait(1.0); // 1 sec
Mikchel 0:85243f2dfd7a 11 }
Mikchel 0:85243f2dfd7a 12 //polnoe gavno
Mikchel 0:85243f2dfd7a 13 }