Hi,
I am using a seeduino MEGA (arduino-like) device to control a LCD (https://www.crystalfontz.com/product/CFAH4002ATFHJT.html).
If I ground the contrast pin, I see some output on the LCD as expected. I am trying to use an analog pin to control the contrast. Whatever value i put in the analogWrite, the LCD always stay blank. Is it something doable or I have to absolutely use a POT to control constrast?
pseudo-code:
thanx
Mart
I am using a seeduino MEGA (arduino-like) device to control a LCD (https://www.crystalfontz.com/product/CFAH4002ATFHJT.html).
If I ground the contrast pin, I see some output on the LCD as expected. I am trying to use an analog pin to control the contrast. Whatever value i put in the analogWrite, the LCD always stay blank. Is it something doable or I have to absolutely use a POT to control constrast?
pseudo-code:
Code:
#define LCD_CONTRAST_PIN 5
LCDInit();
pinMode(LCD_CONTRAST_PIN, OUTPUT);
analogWrite(LCD_CONTRAST_PIN, 10);
Mart
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.