diff --git a/src/config.h b/src/config.h index c8bcbeb..8104afd 100644 --- a/src/config.h +++ b/src/config.h @@ -30,8 +30,8 @@ #define SPI_INACTIVE 255 #define SPI_CLOCK_SPEED 15000000 // Hz -#define SPI_CPOL 0 // Taken from circle sample application -#define SPI_CPHA 0 // Apparently Mode 0 (0,0) is common...? +#define SPI_CPOL 0 // Taken from circle sample application +#define SPI_CPHA 0 // Apparently Mode 0 (0,0) is common...? class CConfig // Configuration for MiniDexed diff --git a/src/userinterface.cpp b/src/userinterface.cpp index 17c65c4..5bc256e 100644 --- a/src/userinterface.cpp +++ b/src/userinterface.cpp @@ -80,13 +80,13 @@ bool CUserInterface::Initialize (void) } m_pST7789Display = new CST7789Display (m_pSPIMaster, - m_pConfig->GetST7789Data(), - m_pConfig->GetST7789Reset(), - m_pConfig->GetST7789Backlight(), - m_pConfig->GetST7789Width(), - m_pConfig->GetST7789Height(), - SPI_CPOL, SPI_CPHA, SPI_CLOCK_SPEED, - m_pConfig->GetST7789Select()); + m_pConfig->GetST7789Data(), + m_pConfig->GetST7789Reset(), + m_pConfig->GetST7789Backlight(), + m_pConfig->GetST7789Width(), + m_pConfig->GetST7789Height(), + SPI_CPOL, SPI_CPHA, SPI_CLOCK_SPEED, + m_pConfig->GetST7789Select()); if (m_pST7789Display->Initialize()) { m_pST7789Display->SetRotation (m_pConfig->GetST7789Rotation());