I'm having a problem with certain characters being dim, to the point where I can hardly see them, while some characters are brightly lit up. I'm still very new to the Arduino board and I'm trying to hook up a potentiometer and an LCD, and have the LCD show the value (0-1023) of the POT. I was able to find the code to achieve this on this site, so that is not the problem. The problem is, I want a description of the value next to it, but when it appears it is VERY dim compared to the POT value.
Any help would be appreciated.
Here is my code :
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x3F
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
int n = 1;
int sensorPin = A3;
int sensorValue = 0;
LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);
void setup()
{
lcd.begin (20,4);
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
lcd.setBacklight(HIGH);
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("LF");
sensorValue = analogRead(sensorPin);
delay(20);
lcd.clear();
lcd.setCursor(4,0);
lcd.print(sensorValue);
delay(50);
}