HPWM 1,Contrast,1000
Where Contrast is a byte variable in the range 0-125. Steps of 25 seem to be adequate (ie Contrast=0, 25, 50, 75,100 or 125) where zero is maximum and 125 is minimum. Stepping above 125 is pointless as your display will disappear into obscurity.
The value for Resistors R1 and R2 I've set at 1K5, mainly because I've been told we have almost 2 million of that value in stock and please can I find a way of getting rid of them. Decreasing R2 to say 680R will increase the bottom-end contrast, but the software variable Contrast might need larger steps (say steps of 40) and increased span (eg 0-240).
You really don't get much cheaper or simpler than this...
Melanie


Menu

Re: I2CWRITE/I2CREAD access hardware in the different way? (PCA9685 issues)
You should probably leave them as inputs.
tumbleweed - 20th December 2025, 17:39The I2C commands will change them from inputs to outputs as required to simulate an open-collector signal (high=input, low=output 0).
It would...