diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/St7789.cpp | 8 | ||||
-rw-r--r-- | src/drivers/St7789.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 1de5f5f4..1f6e6d36 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -69,16 +69,16 @@ void St7789::ColumnAddressSet() { WriteCommand(static_cast<uint8_t>(Commands::ColumnAddressSet)); WriteData(0x00); WriteData(0x00); - WriteData(Height >> 8); - WriteData(Height & 0xff); + WriteData(Width >> 8u); + WriteData(Width & 0xffu); } void St7789::RowAddressSet() { WriteCommand(static_cast<uint8_t>(Commands::RowAddressSet)); WriteData(0x00); WriteData(0x00); - WriteData(Width >> 8); - WriteData(Width & 0xff); + WriteData(320u >> 8u); + WriteData(320u & 0xffu); } void St7789::DisplayInversionOn() { diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index 42fbe6a7..fb57f283 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -65,7 +65,7 @@ namespace Pinetime { void ColumnAddressSet(); static constexpr uint16_t Width = 240; - static constexpr uint16_t Height = 240; + static constexpr uint16_t Height = 320; void RowAddressSet(); }; } |