diff --git a/IODevice.h b/IODevice.h index eaebaf7..3ff1dbe 100644 --- a/IODevice.h +++ b/IODevice.h @@ -276,7 +276,7 @@ private: class PCA9685 : public IODevice { public: - static void create(VPIN vpin, int nPins, I2CAddress i2cAddress); + static void create(VPIN vpin, int nPins, I2CAddress i2cAddress, uint16_t frequency = 50); enum ProfileType : uint8_t { Instant = 0, // Moves immediately between positions (if duration not specified) UseDuration = 0, // Use specified duration @@ -289,7 +289,7 @@ public: private: // Constructor - PCA9685(VPIN vpin, int nPins, I2CAddress i2cAddress); + PCA9685(VPIN vpin, int nPins, I2CAddress i2cAddress, uint16_t frequency); // Device-specific initialisation void _begin() override; bool _configure(VPIN vpin, ConfigTypeEnum configType, int paramCount, int params[]) override;