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: Cayenne-MQTT-mbed NetworkSocketAPI X_NUCLEO_IDW01M1v2 mbed Servo
Fork of Cayenne-X-NUCLEO-IDW01M1-TMP36 by
LED.hpp
00001 #include "mbed.h" 00002 //DigitalOut LED_T(D7); 00003 class LED{ 00004 public: 00005 LED(PinName pin); 00006 LED(); 00007 void On(); 00008 void Off(); 00009 private: 00010 DigitalOut _pin; 00011 00012 }; 00013 LED::LED(PinName pin) : _pin(pin){ 00014 } 00015 void LED::On(){ 00016 _pin = 1; 00017 } 00018 void LED::Off(){ 00019 _pin = 0; 00020 }
Generated on Fri Jul 15 2022 12:34:44 by
1.7.2
