What Library Do I Need To Use For This Code For Controlling An LCD I2C ...

shacharzidon:

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address

What’s this constructer supposed to do? When I look into the LiquidCrystal_I2C library is see

johnrickman/LiquidCrystal_I2C/blob/master/LiquidCrystal_I2C.h#L57

  1. // flags for backlight control
  2. #define LCD_BACKLIGHT 0x08
  3. #define LCD_NOBACKLIGHT 0x00
  4. #define En B00000100 // Enable bit
  5. #define Rw B00000010 // Read/Write bit
  6. #define Rs B00000001 // Register select bit
  7. class LiquidCrystal_I2C : public Print {
  8. public:
  9. LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);
  10. void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS );
  11. void clear();
  12. void home();
  13. void noDisplay();
  14. void display();
  15. void noBlink();
  16. void blink();
  17. void noCursor();
  18. void cursor();
  19. void scrollDisplayLeft();

A constructor that wants the I2C address, and number of columns and rows. And there’s no other constructor which takes that many arguments as your code shows.

If you have code which calls into another constructor then you’re probably using a different library. Which one do you want / have you installed in the Arduino IDE?

Tag » Arduino-liquidcrystal-i2c-library-master Download