mirror of
https://github.com/esphome/esphome.git
synced 2026-06-02 19:18:20 +08:00
[spi] Add LOG_SPI_DEVICE macro (#15118)
This commit is contained in:
@@ -34,6 +34,8 @@ using SPIInterface = void *; // Stub for platforms without SPI (e.g., Zephyr)
|
|||||||
*/
|
*/
|
||||||
namespace esphome::spi {
|
namespace esphome::spi {
|
||||||
|
|
||||||
|
#define LOG_SPI_DEVICE(this) ESP_LOGCONFIG(TAG, " CS Pin: %d", esphome::spi::Utility::get_pin_no(this->cs_));
|
||||||
|
|
||||||
/// The bit-order for SPI devices. This defines how the data read from and written to the device is interpreted.
|
/// The bit-order for SPI devices. This defines how the data read from and written to the device is interpreted.
|
||||||
enum SPIBitOrder {
|
enum SPIBitOrder {
|
||||||
/// The least significant bit is transmitted/received first.
|
/// The least significant bit is transmitted/received first.
|
||||||
|
|||||||
@@ -963,6 +963,7 @@ def lint_log_multiline_continuation(fname, content):
|
|||||||
"esphome/components/nextion/nextion_base.h",
|
"esphome/components/nextion/nextion_base.h",
|
||||||
"esphome/components/select/select.h",
|
"esphome/components/select/select.h",
|
||||||
"esphome/components/sensor/sensor.h",
|
"esphome/components/sensor/sensor.h",
|
||||||
|
"esphome/components/spi/spi.h",
|
||||||
"esphome/components/stepper/stepper.h",
|
"esphome/components/stepper/stepper.h",
|
||||||
"esphome/components/switch/switch.h",
|
"esphome/components/switch/switch.h",
|
||||||
"esphome/components/text/text.h",
|
"esphome/components/text/text.h",
|
||||||
|
|||||||
Reference in New Issue
Block a user