diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-02-01 17:45:45 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-02-01 17:45:45 +0100 |
commit | 518db760e2dbcfd0bf71ff3123e10f8a5d9140f8 (patch) | |
tree | c311fb40c90848f45c2dbdfd2214215782fc82d2 | |
parent | f5a6db59df4d296c4436c450c66a6edcf331d169 (diff) | |
download | turris-lcd-example-518db760e2dbcfd0bf71ff3123e10f8a5d9140f8.tar.gz turris-lcd-example-518db760e2dbcfd0bf71ff3123e10f8a5d9140f8.tar.bz2 turris-lcd-example-518db760e2dbcfd0bf71ff3123e10f8a5d9140f8.zip |
Set real i2c device on turris
-rw-r--r-- | src/turris-lcd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/turris-lcd.cpp b/src/turris-lcd.cpp index d9509e0..034fc94 100644 --- a/src/turris-lcd.cpp +++ b/src/turris-lcd.cpp @@ -5,7 +5,7 @@ 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); + LiquidCrystal_I2C lcd("/dev/i2c-7", 0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); lcd.begin(20, 4); lcd.on(); |