void DigitalPin::setMode(char* mode) { if (!strcmp("PWM", mode)) { _pwm = true; } else { _pwm = false; _mode = PinMode(mode); pinMode(this->getPin(), _mode.get()); } }
void Pin::reset() { this->setMode(PinMode(INPUT)); this->setValue(PinValue(LOW)); }