Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
PCA9685 PCF8547 add two checkboxes for the mode2 settings INVRT (Bit 4) and OUTDRV (Bit 2) #1940
The PCA9685 board is the only way to run multiple Leddrivers with ESPEasy.
Unfortunately the possibility for mode2 settings INVRT (bit 4) and OUTDRV via a checkbox is still missing.
On 21 Dec 2017 ShardanX wrote the following:
The PCA9685 is an external PWM chip.
As LED stripes and such are daily used items to day this should be changed.
In the plugin init there is this line:
I suggest to use two checkboxes for the mode2 settings INVRT (Bit 4) and OUTDRV (Bit 2).
This makes the use of FET's and driver chip possible. They need non inverted output, direct driving of a MOSFET needs totem pole config of the outputs, some drivers might need that too. As tehere are driver chips inverting and non-inverting, this setting should be separate from the OUTDRV setting.
The INVRT should be added to the PCF8547 too if possible as the outputs are always inverted with the current settings.
Maybe we should also have a discussion about what to do with internal/external GPIO handling.
We should have a generic way of GPIO handling and I guess the comment I made earlier today about the Switch plugin also applies here.
I need help with the MODE2 register.
I have MODE2 default on 0x10 (16) default.
If I send:
Changes to the MODE2 settings do not change anything.
Well, I could not figure out the meaning of the possible settings.
For the application with a Ledtreiber but it is enough.
MODE 2 to 6 inverts the default setting and I can dim my light from 0 to 4095 - perfect.
But maybe someone can explain the remaining MODE 2 settings.