[st7789v] Move set_model_str into the header (#19296)

This commit is contained in:
J. Nick Koston
2026-09-16 17:13:34 +12:00
committed by GitHub
parent f95a876ef2
commit da3ddee767
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -152,8 +152,6 @@ void ST7789V::update() {
this->write_display_data();
}
void ST7789V::set_model_str(const char *model_str) { this->model_str_ = model_str; }
void ST7789V::write_display_data() {
uint16_t x1 = this->offset_width_;
uint16_t x2 = x1 + get_width_internal() - 1;
+1 -1
View File
@@ -110,7 +110,7 @@ class ST7789V final : public display::DisplayBuffer,
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
spi::DATA_RATE_20MHZ> {
public:
void set_model_str(const char *model_str);
void set_model_str(const char *model_str) { this->model_str_ = model_str; }
void set_dc_pin(GPIOPin *dc_pin) { this->dc_pin_ = dc_pin; }
void set_reset_pin(GPIOPin *reset_pin) { this->reset_pin_ = reset_pin; }
void set_backlight_pin(GPIOPin *backlight_pin) { this->backlight_pin_ = backlight_pin; }