Hey folks.
I am re-building something I had actually build successfully before with the Phico M0 LCD, however, I lost the data-sheet, so I start to google it.
in my original code I wrote some comment like this :
/*
The circuit:
- LCD RS pin to digital pin 12
- LCD Enable pin to digital pin 11
- LCD D4 pin to digital pin 5
- LCD D5 pin to digital pin 4
- LCD D6 pin to digital pin 3
- LCD D7 pin to digital pin 2
- LCD R/W pin to ground
- 10K resistor:
- ends to +5V and ground
- wiper to LCD VO pin (pin 3)
*/
// include the library code:
#include <LiquidCrystal.h>
Here I didnt find any datasheet with the D4-7(but D0-4)
and on the data sheet I googled above, there’s something called D0-4, and some ‘unnecessary pins’
Here’s my original pics for testing (it’s working)
(1-23 above 2-24 )
at that time I was using the ‘unnecessary pins’ for the LCD input,
and use:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);//rows and cols
lcd.print(" Hello!")
}
But now, my LCD cannot print anything, but display some black blocks (I believe there’s no bug in my code)
I tried both ‘unnecessary pins’ & D0-D3 on the datasheet I googled, D0-D3 could only display black block at the first line.
Is this indicate my LCD is broken? are the ‘unnecessary pins’ same as D0-D3?
*ps: i’m using sparkfun instead of Arduino Uno, pin 13 seems are specified for a LED on the sparkfun board. Will this a problem?