MAX6921: fix CI errors (round 3)

This commit is contained in:
endym 2024-08-08 17:33:12 +02:00
parent 8f2702aae3
commit df0a897e69
4 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include "esphome/core/hal.h" #include "esphome/core/hal.h"
#include "esphome/core/helpers.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 max6921
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO

View file

@ -1,5 +1,7 @@
#pragma once #pragma once
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include <esp32-hal-gpio.h> #include <esp32-hal-gpio.h>
#include <string> #include <string>
#include <vector> #include <vector>
@ -121,3 +123,5 @@ class Display : public DisplayBrightness, public DisplayMode {
} // namespace max6921 } // namespace max6921
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO

View file

@ -1,5 +1,7 @@
// Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX6921-MAX6931.pdf // Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX6921-MAX6931.pdf
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include <cinttypes> #include <cinttypes>
#include "display.h" #include "display.h"
#include "esphome/core/hal.h" #include "esphome/core/hal.h"
@ -112,3 +114,5 @@ void MAX6921Component::set_writer(max6921_writer_t &&writer) { this->writer_ = w
} // namespace max6921 } // namespace max6921
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO

View file

@ -1,5 +1,7 @@
#pragma once #pragma once
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include <esp32-hal-gpio.h> #include <esp32-hal-gpio.h>
#include <string> #include <string>
#include "esphome/core/automation.h" #include "esphome/core/automation.h"
@ -56,3 +58,5 @@ class MAX6921Component : public PollingComponent,
} // namespace max6921 } // namespace max6921
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO