fdebrabander / arduino-liquidcrystal-i2c-library Goto Github PK
View Code? Open in Web Editor NEWLibrary for the LiquidCrystal LCD display connected to an Arduino board.
Library for the LiquidCrystal LCD display connected to an Arduino board.
i added LiquidCrystal_I2C.h to sketch folder, but i getting "that SerialDisplay.ino:6:31: fatal error: LiquidCrystal_I2C.h: No such file or directory" what i did mistake ??i'm using 1.6.4 Arduino IDE.
how to load a font set to display äöü ÄÖÜ ß and °(degree) ? (German kbd)
This library only prints the first letter of the string that had been passed to the .write(string) function. (i2c controller is pcf8574ae 44qhe knm95q12)
Hi, I want to use the LC whith I2C.
I have connected and it's work well, but wen I use interrupt on GPIO 4 and 5, the LCD trigger interrupts and the lcd is blinking.
Wat is the probleme?
I Use a wemos D1 card (arduino uneo with wifi)
I believe the library no longer works due to the changed library requirements earlier this year. Attempts to import it will show this error:
[] parse library.properties: library.properties not found
There is information here regarding this, it seems the issue is there is no library.properties file.
Ich möchte mit dem Arduino IDE Programm den Display einschalten können. Nur das geht nicht wenn ich den Code aus dem Internet kopiere in das Arduino IDE einfüge und dann will ich ihn ausführen kommt das der Code nicht stimmt.
The code is currently not properly documented and need to get doxygen style documentation.
I have a problem that my LCD is unknown at compile time, so can make assumptions such as address, columns,rows etc. But I need to be able to redefine these at run.
My workround is quite simple to add a new method redefine to LiquidCrystal_I2C.cpp
void LiquidCrystal_I2C::redefine(uint8_t lcd_addr, uint8_t lcd_cols, uint8_t lcd_rows) {
_addr = lcd_addr;
_cols = lcd_cols;
_rows = lcd_rows;
}
Obviously this new method needs to be added to LiquidCrystal_I2C.h as well
void redefine(uint8_t lcd_addr, uint8_t lcd_cols, uint8_t lcd_rows);
Any chance of the above being included for submission to any update of the library?
`Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino MKR1000"
WARNUNG: Bibliothek LCD03 behauptet auf avr, esp8266 Architektur(en) ausgeführt werden zu können und ist möglicherweise inkompatibel mit Ihrem derzeitigen Board, welches auf samd Architektur(en) ausgeführt wird.
H:\Entwickler\Arduino-Projekte\libraries\LCD03\LCD03.cpp: In member function 'virtual size_t LCD03::write(const uint8_t*, size_t)':
H:\Entwickler\Arduino-Projekte\libraries\LCD03\LCD03.cpp:134:29: error: 'BUFFER_LENGTH' was not declared in this scope
while(bufferFreeBytes() < BUFFER_LENGTH);
^~~~~~~~~~~~~
H:\Entwickler\Arduino-Projekte\libraries\LCD03\LCD03.cpp:134:29: note: suggested alternative: 'REG_DSU_LENGTH'
while(bufferFreeBytes() < BUFFER_LENGTH);
^~~~~~~~~~~~~
REG_DSU_LENGTH
H:\Entwickler\Arduino-Projekte\libraries\LCD03\LCD03.cpp:138:23: error: 'BUFFER_LENGTH' was not declared in this scope
if(i != 0 && i % (BUFFER_LENGTH-1) == 0) {
^~~~~~~~~~~~~
H:\Entwickler\Arduino-Projekte\libraries\LCD03\LCD03.cpp:138:23: note: suggested alternative: 'REG_DSU_LENGTH'
if(i != 0 && i % (BUFFER_LENGTH-1) == 0) {
^~~~~~~~~~~~~
REG_DSU_LENGTH
exit status 1
Fehler beim Kompilieren für das Board Arduino MKR1000.
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
`
the example code sources are very poor - please provide more examples for all single library functions:
void home();
void noDisplay();
void display();
void noBlink();
void blink();
void noCursor();
void cursor();
void cursor();
void scrollDisplayLeft();
void scrollDisplayRight();
void printLeft();
void printRight();
void leftToRight();
void rightToLeft();
void shiftIncrement();
void shiftDecrement();
void noBacklight();
void backlight();
bool getBacklight();
void autoscroll();
void noAutoscroll();
void createChar(uint8_t, uint8_t[]);
void setCursor(uint8_t, uint8_t);
virtual size_t write(uint8_t);
void command(uint8_t);
inline void blink_on() { blink(); }
inline void blink_off() { noBlink(); }
inline void cursor_on() { cursor(); }
inline void cursor_off() { noCursor(); }
Hi there,
We at wokwi.com are working on Arduino Playground and it so happened that we have an online Arduino playground for the I2C scanner as well as displays. You can have a look at I2C scanner, LCD1602, the 16x2 display element as well as for OLED display.
It will be a great experience for the users to simulate your library and use your library as an element in the Arduino playground. I hope you also find this interesting. if you agree, we will create a PR and update the readme file with further clear instructions in using the Arduino playground.
(Arduinoplayground is a free and open-source project as well)
I can't find the code of print() function, where is it?
Hello,
I use you library but I don't have the possibility to show a long text. If my text is up to 40 charter this is cutting on two part and the 41 charter and after is showing on the second line.
This is my code :
#include <LiquidCrystal_I2C.h>
#include <Keypad_I2C.h>
const byte keypadRow = 4;
const byte keypadCol = 4;
byte rowPins[keypadRow] = {0,1,2,3}; // Row 0,1,2,3
byte colPins[keypadCol] = {4,5,6,7}; // Col 0,1,2,3
int keypadArdesse = 0x22; // A0 and A2 GND and A1 5V
char keys[keypadRow][keypadCol] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
const byte lcdRow = 2;
const byte lcdCols = 16;
int lcdAdresse = 0x27; // Default adress
Keypad_I2C keypad = Keypad_I2C(makeKeymap(keys), rowPins, colPins, keypadRow, keypadCol, keypadArdesse);
LiquidCrystal_I2C lcd = LiquidCrystal_I2C(lcdAdresse,lcdCols,lcdRow);
bool backlight = true;
char txtFirstLine[] = "An den exis ti na kanis ela na pame mia megali volta opou 8elis ";
void setup(){
Serial.begin(9600);
keypad.begin();
lcd.init();
lcd.backlight();
lcd.setCursor(0,0);
lcd.printstr(txtFirstLine);
}
void loop(){
char key = keypad.getKey();
if(key){
Serial.println(key);
if(key == 'A')
lcd.scrollDisplayLeft();
if(key == 'B')
lcd.scrollDisplayRight();
}
}
Why no license here? As noted in the readme, this is based off the work by DFRobot, witch I can't find a license for that either.
Anyone know what license DFRobot used? Or what license this uses? If not, add a license?
I'm using a 16*2 LCD Display, with an Arduino Uno R3, but am unable to display anything on the LCD, I can toggle the backlight though.
I think there may be an error in line 107 of LiquidCrystal_I2C.cpp.
The line reads:
if (row > _rows) {
and I think it should be:
if (row >= _rows) {
otherwise when the function is called with parameter row = 4 it is going to try fetching a value from index 4 of row_offsets array, and such index does not exists (the array has only 3 elements, i.e. indices 0..3).
hi
I am a Arduino anovice
I have successfully put this library in UNO R3 via ,very nice.
my question is
This library can be transplanted to Attiny85?
if i want use Attiny85 contact lcd via i2c
what Can i do it?
I have to change it¨to int row_offsets[] = { 0x00, 0x40, 0x10, 0x50 };
Can we change digital pins used for data pins in default library ?
I get error upon compiling
no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int)'
am trying the helloworld example and i don't know where i can connect the SCL and SDA pin's
and how to find I2C address fro arduino uno
I think this library needs a different name as it is not compatible with libraries with the same name.
IDE says "no matching function for call to 'LiquidCrystal_12C::begin()' "
I used just this library, not changing anything. What's wrong?
[This Problem was solved]
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
HelloWorld:5: error: invalid conversion from 'int' to 't_backlighPol'
HelloWorld:5: error: initializing argument 3 of 'LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, t_backlighPol)'
HelloWorld.ino: In function 'void setup()':
HelloWorld:10: error: no matching function for call to 'LiquidCrystal_I2C::begin()'
C:\Users\Davi's Software\Documents\Arduino\libraries\NewliquidCrystal/LiquidCrystal_I2C.h:110: note: candidates are: virtual void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)
[This Problem was solved]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.