Minor formatting fixes to tidy up.

pull/652/head
Kevin 11 months ago
parent 1e4b578323
commit 120d1bd579
  1. 4
      src/config.h
  2. 14
      src/userinterface.cpp

@ -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

@ -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());

Loading…
Cancel
Save