So I plugged it in and was running the hello world example. I already turned the potentiometer but just nothing showed up. The pins are connected properly.
I did change the the pins it read to the ones that my keypad used. It was
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
Here's the full code:
#include <LiquidCrystal.h>
const int rs = 8, en = 9, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
lcd.begin(16, 2); // Initialize display size
lcd.clear(); // Clear the display
lcd.setCursor(0, 0); // Move to the first position
lcd.print("LCD TEST OK"); // Simple text
}
void loop() {
// Nothing needed in loop — text should stay on the screen
}
