#include <LiquidCrystal.h>
int i,c;
LiquidCrystal lcd(3,4,5,6,7,8,9,10,11,12,13);
byte du[]={0,31,0,0,0,0,0,0};
byte du1[]={31,24,24,0,0,0,0,0};
byte* g1[32]={NULL,NULL,NULL,du,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.begin(16, 2);
lcd.createChar(1, du1);
lcd.write(65);
}
void loop() {
//for(i=0,c=1;i<32;i++)
if(g1[i]!=NULL)
{
lcd.createChar(c,g1[i]);
c++;
lcd.setCursor(i%16,i/16);
lcd.write((byte)c);
Serial.println(i);
}
}
So I was just starting out with making a small game on an lcd as a task. But I've already hit a wall, the LCD refusing to display any characters suddenly. It was displaying normal characters just fine for a while, before I initialized my arrays.
Please help, I only have 1 day before my task submission.
The circuit diag is attached below