diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-02-09 00:04:31 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2024-02-11 13:28:01 +0100 |
| commit | 4c274421d9bcf5f903e307f1fd61e52174362975 (patch) | |
| tree | b67970cc2ca65dfe389ac55b817b54cc42b50c60 /src/drivers/St7789.cpp | |
| parent | 2db920599eec192f794c96fcaeb7376ea3325adb (diff) | |
Remove GFX (and unused GFX dependencies)
Diffstat (limited to 'src/drivers/St7789.cpp')
| -rw-r--r-- | src/drivers/St7789.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 17d14ce6..e583aac8 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -140,16 +140,6 @@ void St7789::DisplayOff() { nrf_delay_ms(500); } -void St7789::VerticalScrollDefinition(uint16_t topFixedLines, uint16_t scrollLines, uint16_t bottomFixedLines) { - WriteCommand(static_cast<uint8_t>(Commands::VerticalScrollDefinition)); - WriteData(topFixedLines >> 8u); - WriteData(topFixedLines & 0x00ffu); - WriteData(scrollLines >> 8u); - WriteData(scrollLines & 0x00ffu); - WriteData(bottomFixedLines >> 8u); - WriteData(bottomFixedLines & 0x00ffu); -} - void St7789::VerticalScrollStartAddress(uint16_t line) { verticalScrollingStartAddress = line; WriteCommand(static_cast<uint8_t>(Commands::VerticalScrollStartAddress)); @@ -160,17 +150,6 @@ void St7789::VerticalScrollStartAddress(uint16_t line) { void St7789::Uninit() { } -void St7789::DrawPixel(uint16_t x, uint16_t y, uint32_t color) { - if (x >= Width || y >= Height) { - return; - } - - SetAddrWindow(x, y, x + 1, y + 1); - - nrf_gpio_pin_set(pinDataCommand); - WriteSpi(reinterpret_cast<const uint8_t*>(&color), 2); -} - void St7789::DrawBuffer(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint8_t* data, size_t size) { SetAddrWindow(x, y, x + width - 1, y + height - 1); nrf_gpio_pin_set(pinDataCommand); |
