From 5062173627f9d1741061312ceeadd44d4bc0fc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 31 Jan 2017 18:27:49 +0100 Subject: Initial commit --- src/turris-lcd.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/turris-lcd.cpp (limited to 'src/turris-lcd.cpp') diff --git a/src/turris-lcd.cpp b/src/turris-lcd.cpp new file mode 100644 index 0000000..d9509e0 --- /dev/null +++ b/src/turris-lcd.cpp @@ -0,0 +1,17 @@ +#include +#include + +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; +} -- cgit v1.2.3