Hello iam trying to do hello world on Arduino nano but nothing happens the display is winstar WH2002A without I2C expander directly conneted to nano only bars on the screen this is the code
#include <LiquidCrystal.h>
// Define the LCD pin configuration
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// Set up the LCD's number of columns and rows:
lcd.begin(20, 2);
// Set the contrast for a 5V supply (experiment with different values)
lcd.command(0x21); // Extended commands
lcd.command(0xBB); // Set LCD Vop (Contrast). Experiment with different values.
// Activate the basic mode
lcd.command(0x20);
// Print a message to the LCD
lcd.print("Hello, World!");
}
void loop() {
// Nothing to do here
}`
Download the ZIP.
In the IDE, go to Sketch in the Toolbar
mouse down to Include Library in the drop-down,
then over to Add ZIP Library....
then you'll have to navigate to where the ZIP was downloaded.
I didn't look over the library. You noted that you didn't know how to 'import', so I shed some light on that.
Now - looking at the link - it is for R_Pi. So, that won't work at all. @xfpd ? ? ?
From what I'm reading HD44780 and ST7706 should work with LiquidCrystal from the IDE.
I'm not an expert.
I'd ask for more information, but that usually results in a brickwall (or fritzing).
Followed this guide https://www.arduino.cc/en/Tutorial/LibraryExamples/HelloWorld display is wired correctly bars no text tested with 2 displays and it`s not a LCD problem because this LCD works on PIC tried and with different arduino nano but same
For all future issues: Physical inspection must always be first. It involves fewer resources than turning it on, examining code or asking others to examine code (or interpret the "on" state). It is your best investment of time to concentrate on an open observation of your project to keep it moving.