Click or drag to resize
MotorHat2348 Constructor (Byte, Double)
Initializes a new instance of the MotorHat2348 class with the specified I2C address and PWM frequency.

Namespace:  Adafruit.IoT.Devices
Assembly:  Adafruit.IoT (in Adafruit.IoT.dll) Version: 1.0.6.0 (1.0.6.0)
Syntax
public MotorHat2348(
	byte i2cAddrress,
	double frequency
)

Parameters

i2cAddrress
Type: SystemByte
The I2C address of the MotorHat's PWM controller.
frequency
Type: SystemDouble
The frequency in Hz to set the PWM controller.
Remarks
The default i2c address is 0x60, but the HAT can be configured in hardware to any address from 0x60 to 0x7f. The PWM hardware used by this HAT is a PCA9685. It has a total possible frequency range of 24 to 1526 Hz. Setting the frequency above or below this range will cause PWM hardware to be set at its maximum or minimum setting.
See Also