mirror of
https://github.com/esphome/esphome.git
synced 2024-12-04 20:48:21 +01:00
MAX6921: fix CI errors (round 3)
This commit is contained in:
parent
8f2702aae3
commit
df0a897e69
4 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
||||
#include "esphome/core/hal.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
@ -829,3 +830,5 @@ void DisplayMode::set_mode(display_mode_t mode, uint32_t duration_ms) {
|
|||
|
||||
} // namespace max6921
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
||||
#include <esp32-hal-gpio.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -121,3 +123,5 @@ class Display : public DisplayBrightness, public DisplayMode {
|
|||
|
||||
} // namespace max6921
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX6921-MAX6931.pdf
|
||||
|
||||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
||||
#include <cinttypes>
|
||||
#include "display.h"
|
||||
#include "esphome/core/hal.h"
|
||||
|
@ -112,3 +114,5 @@ void MAX6921Component::set_writer(max6921_writer_t &&writer) { this->writer_ = w
|
|||
|
||||
} // namespace max6921
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
||||
#include <esp32-hal-gpio.h>
|
||||
#include <string>
|
||||
#include "esphome/core/automation.h"
|
||||
|
@ -56,3 +58,5 @@ class MAX6921Component : public PollingComponent,
|
|||
|
||||
} // namespace max6921
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_ESP32_FRAMEWORK_ARDUINO
|
||||
|
|
Loading…
Reference in a new issue