Updated PCA9685 (markdown)

andrethomas 2018-10-01 19:46:02 +02:00
parent 308d7700ef
commit 192140bca8
1 changed files with 3 additions and 1 deletions

@ -23,9 +23,10 @@ The driver is not included during the compilation of the standard released binar
```
#define USE_PCA9685
#define USE_PCA9685_ADDR 0x40
#define USE_PCA9685_FREQ 50 // Support is for 24 to 1526 Hz
```
For information on how to setup a development environment please check the wiki on [Arduino IDE (the easiest, probably)](https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE) or [PlatformIO](https://github.com/arendst/Sonoff-Tasmota/wiki/PlatformIO)
For information on how to set up a development environment please check the wiki on [Arduino IDE (the easiest, probably)](https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE) or [PlatformIO](https://github.com/arendst/Sonoff-Tasmota/wiki/PlatformIO)
Note that the I2C selection must correspond with how you have wired the module or chip as incorrect addressing will result in the PCA9685 not being detected. The valid I2C address range is 0x40 through 0x47 for the PCA9685 and most off-the-shelf modules would likely default to 0x40.
@ -47,6 +48,7 @@ driver15 pwm,pin,pwmvalue // where pin = LED pin 0 through 15 and pwmvalue is th
driver15 pwm,pin,ON // Fully turn a specific pin/LED ON
driver15 pwm,pin,OFF // Fully turn a specific pin/LED OFF
driver15 reset // Reset to power-up settings - i.e. F=50hz and all pins in OFF state
driver15 status // Will return a JSON string containing all the current settings / parameters
```
### OTHER IMPORTANT INFORMATION