k

Dependencies:   mbed

Committer:
abp123
Date:
Mon Oct 15 11:15:11 2018 +0000
Revision:
0:55bf71c7eb22
k

Who changed what in which revision?

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