Skip to content

Commit bc0e6e2

Browse files
Added support for LCD I2C Shield
1 parent 1e6245c commit bc0e6e2

File tree

6 files changed

+236
-126
lines changed

6 files changed

+236
-126
lines changed

Software/Arduino code/OpenAstroTracker/Configuration_adv.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@
131131
#define HEADLESS_CLIENT 0
132132
#endif
133133

134+
////////////////////////////
135+
//
136+
// ARDUINO RGB LCD SHIELD I2C
137+
// There are two different chips supported by the LiquidTWI2 library,
138+
// check the marking on your shield
139+
#define I2C_DISPLAY 0
140+
#define I2C_TYPE_MCP23008 0
141+
#define I2C_TYPE_MCP23017 1
142+
134143
#ifdef __AVR_ATmega328P__ // UNO must use headless
135144
#undef HEADLESS_CLIENT
136145
#define HEADLESS_CLIENT 1

Software/Arduino code/OpenAstroTracker/platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ lib_deps =
1717
teemuatlut/TMCStepper @ ^0.7.1
1818
waspinator/AccelStepper @ ^1.61
1919
arduino-libraries/LiquidCrystal @ ^1.0.7
20+
lincomatic/LiquidTWI2@^1.2.7
2021

2122
[env]
2223
framework = arduino

0 commit comments

Comments
 (0)