Skip to content

Instantly share code, notes, and snippets.

View rallicknom's full-sized avatar

Manish rallicknom

View GitHub Profile
@rallicknom
rallicknom / mbed blinky.c
Last active July 25, 2016 09:45
Mbed code for blinking an LED on F030R8
// 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