mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Cleanup dashboard JS (#491)
* Cleanup dashboard JS * Add vscode * Save start_mark/end_mark * Updates * Updates * Remove need for cv.nameable It's a bit hacky but removes so much bloat from integrations * Add enum helper * Document APIs, and Improvements * Fixes * Fixes * Update PULL_REQUEST_TEMPLATE.md * Updates * Updates * Updates
This commit is contained in:
@@ -9,7 +9,7 @@ namespace waveshare_epaper {
|
||||
|
||||
class WaveshareEPaper : public PollingComponent, public spi::SPIDevice, public display::DisplayBuffer {
|
||||
public:
|
||||
WaveshareEPaper(GPIOPin *dc_pin);
|
||||
void set_dc_pin(GPIOPin *dc_pin) { dc_pin_ = dc_pin; }
|
||||
float get_setup_priority() const override;
|
||||
void set_reset_pin(GPIOPin *reset) { this->reset_pin_ = reset; }
|
||||
void set_busy_pin(GPIOPin *busy) { this->busy_pin_ = busy; }
|
||||
@@ -53,7 +53,7 @@ enum WaveshareEPaperTypeAModel {
|
||||
|
||||
class WaveshareEPaperTypeA : public WaveshareEPaper {
|
||||
public:
|
||||
WaveshareEPaperTypeA(GPIOPin *dc_pin, WaveshareEPaperTypeAModel model);
|
||||
WaveshareEPaperTypeA(WaveshareEPaperTypeAModel model);
|
||||
|
||||
void setup() override;
|
||||
|
||||
@@ -83,7 +83,6 @@ enum WaveshareEPaperTypeBModel {
|
||||
|
||||
class WaveshareEPaper2P7In : public WaveshareEPaper {
|
||||
public:
|
||||
WaveshareEPaper2P7In(GPIOPin *dc_pin);
|
||||
void setup() override;
|
||||
|
||||
void display() override;
|
||||
@@ -98,7 +97,6 @@ class WaveshareEPaper2P7In : public WaveshareEPaper {
|
||||
|
||||
class WaveshareEPaper4P2In : public WaveshareEPaper {
|
||||
public:
|
||||
WaveshareEPaper4P2In(GPIOPin *dc_pin);
|
||||
void setup() override;
|
||||
|
||||
void display() override;
|
||||
@@ -115,7 +113,6 @@ class WaveshareEPaper4P2In : public WaveshareEPaper {
|
||||
|
||||
class WaveshareEPaper7P5In : public WaveshareEPaper {
|
||||
public:
|
||||
WaveshareEPaper7P5In(GPIOPin *dc_pin);
|
||||
void setup() override;
|
||||
|
||||
void display() override;
|
||||
|
||||
Reference in New Issue
Block a user