Re: 16x2 LCD doesn't work correctly when powered on
Well, I got something working, but I sure can't figure out why.
I just started unplugging one wire at a time to see if I could at least get setup() to start running. I noticed that when I had this pin assignment on my Uno, setup() never ran:
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
But when I unplugged RS from 7, setup() runs. The LCD doesn't work right, of course, but the sketch tries to run.
So I reassigned RS to 6, and now the sketch and LCD run perfectly every time:
LiquidCrystal lcd(6, 8, 9, 10, 11, 12);
I figured it might be a bad slot on my Uno board on No. 7, so I tested it with EN in 7, and it works every time this way as well:
LiquidCrystal lcd(6, 7, 9, 10, 11, 12);
Anyone have any ideas as to why this would be so? In any case, it's working now, but weird, right?