1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream> #include <LiquidCrystal_I2C.h> using namespace std; int main(int argc, char *argv[]) { // Initialize LCD LiquidCrystal_I2C lcd("/dev/i2c-2", 0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); lcd.begin(20, 4); lcd.on(); lcd.clear(); lcd.print("Turris Omnia"); return 0; }