Ik dacht dat ie standaard in de IDE zat maar ik had hem gedownload.
https://iprototype.nl/docs/lcd20x4-I2C-BL-arduino-library.rar
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
}
Je hoeft dus geen pins meer toe te wijzen, alleen je i2c adresseren.