From d0445f157c1ba0ced587b10d5b10344d0f4d8286 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Wed, 15 Feb 2023 22:34:37 +0000 Subject: [PATCH] Update IODevice.h Finish changes relating to PWM frequency (doh!) --- IODevice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;