samet kara / deneme

Dependencies:   mbed

Committer:
samtech
Date:
Sat Sep 29 19:59:47 2018 +0000
Revision:
0:fe9f4778556e
Child:
1:e363bc951921
deneme1;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
samtech 0:fe9f4778556e 1 #include "mbed.h"
samtech 0:fe9f4778556e 2 DigitalOut LED_1(LED1);
samtech 0:fe9f4778556e 3 DigitalOut LED_2(LED2);
samtech 0:fe9f4778556e 4 int main() {
samtech 0:fe9f4778556e 5 while(1) {
samtech 0:fe9f4778556e 6 LED_1 = 1; // LED is ON
samtech 0:fe9f4778556e 7 LED_2 = 0; // LED is ON
samtech 0:fe9f4778556e 8 wait(0.5); // 200 ms
samtech 0:fe9f4778556e 9 LED_1 = 0; // LED is ON
samtech 0:fe9f4778556e 10 LED_2 = 1; // LED is ON
samtech 0:fe9f4778556e 11 wait(0.5); // 1 sec
samtech 0:fe9f4778556e 12 }
samtech 0:fe9f4778556e 13 }