g4klx / MMDVMHost

The host program for the MMDVM
GNU General Public License v2.0
378 stars 275 forks source link

PWM backlight don't work #339

Open Giorgiofox opened 7 years ago

Giorgiofox commented 7 years ago

Hello, I have compiled latest version using the I2C Makefile, and my I2C display works very well, but I can't get PWM backlight working. (If I use GPIO commands in raspberry shell, the GPIO work correctly) I'm using GPIO 1 (18) The backlight work only ON (with 100) or OFF (with every value <100)

This is my configuration

[HD44780]

Rows=2
Columns=16

# For basic HD44780 displays (4-bit connection)
# rs, strb, d0, d1, d2, d3
Pins=11,10,0,1,2,3

# Device address for I2C
I2CAddress=0x3F

# PWM backlight
PWM=1  
PWMPin=1 
PWMBright=100
PWMDim=10
g0wfv commented 6 years ago

Can you confirm you've tried changing the PWMDim value to something greater than 10? (50 for instance!)

Although I wrote this, I no longer use it as I use my I2C LCD through lcdproc for other system monitoring screens and that doesn't use the PWM functions.

Giorgiofox commented 6 years ago

Yes, I can confirm This. Perhaps I've upgraded and recompiled today (with sudo make all --makefile Makefile.Pi.HD44780 ), and the I2C display won't work, and also backlight now blink and not more turn on and off when transmitting.. the MMDVM.ini file is external, so not changed this, and values are correct.

g0wfv commented 6 years ago

Try referring to a commit prior to the one that gave you problems to discount configuration errors