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.
TwoLeds.h
- Committer:
- Wizo
- Date:
- 2018-06-20
- Revision:
- 0:047ba38fb71d
File content as of revision 0:047ba38fb71d:
#include "mbed.h" #ifndef TWOLEDS_H #define TWOLEDS_H class TwoLeds { public: TwoLeds(PinName pin1, PinName pin2) : _pin1(pin1), _pin2(pin2) { // Initialisierungsliste _pin1 = 0; // Initialisierung mit 0 _pin2 = 0; } void ledOn(void); void ledOff(void); void ledX(); void printStatus(void); private: DigitalOut _pin1; DigitalOut _pin2; }; #endif