Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
i'm trying to understand C++ in a better way and i am stuck here..
i was writing a class to interface LEDs on the mbed
// the Header file class myLEDS{ public: myLEDS(PinName); myLEDS(PinName, PinName); protected: DigitalOut _a; DigitalOut _b; }// the C++ file myLEDS::myLEDS(PinName a): _a(a){ // error here } myLEDS::myLEDS(PinName a, PinName b): _a(a), _b(b){ }I am getting an error "no default constructor exists for "mbed::DigitalOut" in the C++ file.. how do i get rid of that??
thanks...