mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 18:48:39 +00:00
[st7789v] Move set_model_str into the header (#19296)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user