Nikita Ivanykov / Mbed 2 deprecated DISCO-F746NG

Dependencies:   mbed

Committer:
troshha
Date:
Mon Nov 11 12:06:17 2019 +0000
Revision:
0:67c698549bda
1

Who changed what in which revision?

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