void Motor::speedPin( const int& value) { Pin* pin = Esp8266::getInstance()->getPin(speedPinId); if (pin) { pin->analogWrite(value); Logger::logDebug("Speed pin[" + String(pin->getPinId()) + "] = " + String(value) + "\n"); } }
void Motor::directionPin( const int& value) { Pin* pin = Esp8266::getInstance()->getPin(directionPinId); if (pin) { pin->digitalWrite(value); Logger::logDebug("Direction pin[" + String(pin->getPinId()) + "] = " + String(value) + "\n"); } }