Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
BlinkingLED.cpp
00001 /** 00002 * @file BlinkingLED.cpp 00003 */ 00004 00005 #include "BlinkingLED.h" 00006 00007 BlinkingLED::BlinkingLED(PinName led, uint32_t frequency) : _led(led) { 00008 setting.time = 1.0f / frequency; 00009 t.attach(callback(this, &BlinkingLED::flip), setting.time); 00010 } 00011 00012 void BlinkingLED::flip(void) { 00013 _led = !_led; 00014 }
Generated on Thu Jul 14 2022 02:07:16 by
