Git Product home page Git Product logo

arduino-liquidcrystal-i2c-library's People

Contributors

fdebrabander avatar joaopedrosgs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-liquidcrystal-i2c-library's Issues

License?

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?

please provide more examples for all single library functions

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(); }

Does not print more than one character.

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)

Error in line 107 of LiquidCrystal_I2C.cpp

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).

There is an (for me) unsolveble proplem!

[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]

Arduino Tutorial - 12. I2C Display (LCD)

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.

Arduino playground I2C library option

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)

library.properties missing with Arduino IDE rev. 2.1

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.

How do i fix this please

I get error upon compiling

no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int)'

This library can be use Attiny85 ?

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?

Use LCd with interruption

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)

Display long text

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();
  }
}

MKR 1000

`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.
`

Need to define LCD at runtime

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?

where i can connect my pins

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.