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.
Dependencies: BLE_API mbed nRF51822
Led.cpp
00001 #include "mbed.h" 00002 #include "Led.h" 00003 00004 namespace { 00005 const PinName DIGITAL_OUT_PIN = P0_19; 00006 const int LED_OFF = 1; 00007 const int LED_ON = 0; 00008 00009 DigitalOut mLed(DIGITAL_OUT_PIN, LED_OFF); 00010 } 00011 00012 00013 void LedOn() 00014 { 00015 mLed = LED_ON; 00016 } 00017 00018 void LedOff() 00019 { 00020 mLed = LED_OFF; 00021 } 00022
Generated on Sat Jul 16 2022 07:31:50 by
1.7.2