ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
st7567_i2c
st7567_i2c.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/st7567_base/st7567_base.h
"
5
#include "
esphome/components/i2c/i2c.h
"
6
7
namespace
esphome::st7567_i2c
{
8
9
class
I2CST7567
:
public
st7567_base::ST7567
,
public
i2c::I2CDevice
{
10
public
:
11
void
setup
()
override
;
12
void
dump_config
()
override
;
13
14
protected
:
15
void
command
(uint8_t value)
override
;
16
void
write_display_data
()
override
;
17
18
enum
ErrorCode
{
NONE
= 0,
COMMUNICATION_FAILED
} error_code_{
NONE
};
19
};
20
21
}
// namespace esphome::st7567_i2c
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::st7567_base::ST7567
Definition
st7567_base.h:36
esphome::st7567_i2c::I2CST7567
Definition
st7567_i2c.h:9
esphome::st7567_i2c::I2CST7567::command
void command(uint8_t value) override
Definition
st7567_i2c.cpp:37
esphome::st7567_i2c::I2CST7567::setup
void setup() override
Definition
st7567_i2c.cpp:8
esphome::st7567_i2c::I2CST7567::ErrorCode
ErrorCode
Definition
st7567_i2c.h:18
esphome::st7567_i2c::I2CST7567::COMMUNICATION_FAILED
@ COMMUNICATION_FAILED
Definition
st7567_i2c.h:18
esphome::st7567_i2c::I2CST7567::write_display_data
void write_display_data() override
Definition
st7567_i2c.cpp:39
esphome::st7567_i2c::I2CST7567::dump_config
void dump_config() override
Definition
st7567_i2c.cpp:20
esphome::st7567_i2c::I2CST7567::NONE
enum esphome::st7567_i2c::I2CST7567::ErrorCode NONE
component.h
i2c.h
esphome::st7567_i2c
Definition
st7567_i2c.cpp:4
st7567_base.h
Generated by
1.12.0