From 635336eced47b6f7991ef49a290c3d9dbeb4d7b1 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Fri, 7 Jul 2017 16:09:38 +0100 Subject: [PATCH] kludge for Nubleo-476 --- MCUFRIEND_kbv.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MCUFRIEND_kbv.cpp b/MCUFRIEND_kbv.cpp index d95059e..6b4108c 100644 --- a/MCUFRIEND_kbv.cpp +++ b/MCUFRIEND_kbv.cpp @@ -322,6 +322,9 @@ int16_t MCUFRIEND_kbv::readGRAM(int16_t x, int16_t y, uint16_t * block, int16_t void MCUFRIEND_kbv::setRotation(uint8_t r) { +#if defined(STM32L476xx) +#undef SS +#endif uint16_t GS, SS, ORG, REV = _lcd_rev; uint8_t val, d[3]; rotation = r & 3; // just perform the operation ourselves on the protected variables