Skip to content

Commit 69dd55c

Browse files
committed
Updated display rotation for Arduino Robot Control board
1 parent ecc5eb7 commit 69dd55c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/LcdScreen.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

3232
#include "LcdScreen.h"
3333

34-
#if ARDUINO_AVR_ESPLORA
34+
#if defined(ARDUINO_AVR_ESPLORA)
3535
LcdScreen EsploraTFT(7, 0, 1);
3636
#endif
3737

38-
#if ARDUINO_AVR_ROBOT_CONTROL
38+
#if defined(ARDUINO_AVR_ROBOT_CONTROL)
3939
LcdScreen LottieLemonTFT(LCD_CS, DC_LCD, RST_LCD);
4040
#endif
4141

@@ -45,7 +45,9 @@ LcdScreen::LcdScreen(uint8_t CS, uint8_t RS, uint8_t RST)
4545

4646
void LcdScreen::begin() {
4747
initG();
48+
#if !defined(ARDUINO_AVR_ROBOT_CONTROL)
4849
setRotation(1);
50+
#endif
4951
}
5052

5153
// Arduino TFT library compatibility.

src/LcdScreen.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ class LcdScreen : public Arduino_ILI9163 {
141141

142142
/// Esplora boards have hard-wired connections with
143143
/// the Arduino LCD if mounted on the onboard connector.
144-
#if ARDUINO_AVR_ESPLORA // are we building for Esplora?
144+
#if defined(ARDUINO_AVR_ESPLORA) // are we building for Esplora?
145145
extern LcdScreen EsploraTFT;
146146
#endif
147147

148-
#if ARDUINO_AVR_ROBOT_CONTROL
148+
#if defined(ARDUINO_AVR_ROBOT_CONTROL)
149149
extern LcdScreen LottieLemonTFT;
150150
#endif
151151

0 commit comments

Comments
 (0)