资 源 简 介
supports character LCDs based on HD44780 designs on the arduino
Modifications to LiquidCrystal for the Arduino
I made several modifications to the LiquidCrystal library module from Arduino17:
40x4 LCDs
I added support for an LCD of 4 LInes and 40 characters. I think that if 24x4, 32x4 LCDs exist, they would also work with the software as I have modified it although I have not had the opportunity to test that. The 40x4 LCD (and any HD44780 based LCD with between 81 and 160 characters) will have 2 enable lines. To use an LCD with 4 lines and 40 columns you would declare your LiquidCrystal object as:
LiquidCrystal lcd(RS,RW,Enable1,Enable2, data3,data2,data1,data0); at this time I don’t support 8 data lines. (You can pass 255 as the RW item, ground RW and save an Arduino pin.)
Then in the setup function you would call:
lcd.begin(40,4);
Linewrap
When you declare the dimensions of the LCD in your begin call, the LiquidCrystal library remembers how long th