Add ESP32 PWMOutput support
This commit is contained in:
@@ -92,7 +92,7 @@ open class PWMHardwareServo : Servo{
|
||||
self.device = pin
|
||||
self.device.initPWM()
|
||||
self.internalValue = initialValue
|
||||
self.device.startPWM(period: Int(self.frameWidth), duty: self.minDc + self.dcRange * ((internalValue - self.minValue) / self.valueRange) * 100)
|
||||
self.value = initialValue
|
||||
}
|
||||
|
||||
public func min(){
|
||||
|
||||
Reference in New Issue
Block a user