This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code works as blinky. It toggles the LED every 1 second (not 2 second as expected from the code) | |
#include "mbed.h" | |
DigitalOut myled(LED1); | |
int main() { | |
while(1) { | |
myled = 1; // LED is ON | |
wait(1); // 1 sec | |
wait(1); // 1 sec |