#include <LiquidCrystal.h>
char array1[]=" SunFounder ";
char array2[]="hello, world! ";
int tim = 250;
LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(15,0);
for ( int positionCounter1 = 0; positionCounter1 < 26; positionCounter1++)
{
lcd.scrollDisplayLeft();
lcd.print(array1[positionCounter1]);
delay(tim);
}
lcd.clear();
lcd.setCursor(15,1);
for (int positionCounter2 = 0; positionCounter2 < 26; positionCounter2++)
{
lcd.scrollDisplayLeft();
lcd.print(array2[positionCounter2]);
delay(tim);
}
lcd.clear();
}
lcd 불만 들어오고 아무것도 출력이 안돼... 고장난거야?
빽라이팅 가변저항 줄여봤어요?
ㄴ어떻게 하는거야? 처음 lcd 연결해보고 시작하는거라서 아무것도 모르겠어... sunfounder 에서 step 9단계라길래 8단계까지 쭉 했는데 갑자기 여기서 막혀버리네...
그리고 커서 col이랑 row 순서 바뀐거 같은데
0,0에 두고 'A' 출력부터 해보세요
그리고 하나 더 말하자면 저 배열 크기보다 더 큰 인덱스를 참조하고 있는데 이미 프로그램이 정상이 아닌듯..