ESPHome
2025.5.0
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
{
8
namespace
st7567_i2c {
9
10
class
I2CST7567
:
public
st7567_base::ST7567
,
public
i2c::I2CDevice
{
11
public
:
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
protected
:
16
void
command
(uint8_t value)
override
;
17
void
write_display_data
()
override
;
18
19
enum
ErrorCode
{
NONE
= 0,
COMMUNICATION_FAILED
} error_code_{
NONE
};
20
};
21
22
}
// namespace st7567_i2c
23
}
// namespace esphome
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::st7567_base::ST7567
Definition
st7567_base.h:37
esphome::st7567_i2c::I2CST7567
Definition
st7567_i2c.h:10
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:9
esphome::st7567_i2c::I2CST7567::ErrorCode
ErrorCode
Definition
st7567_i2c.h:19
esphome::st7567_i2c::I2CST7567::COMMUNICATION_FAILED
@ COMMUNICATION_FAILED
Definition
st7567_i2c.h:19
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:22
esphome::st7567_i2c::I2CST7567::NONE
enum esphome::st7567_i2c::I2CST7567::ErrorCode NONE
component.h
i2c.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
st7567_base.h
Generated by
1.12.0