ESPHome
2024.10.2
esphome
esphome
components
st7567_spi
st7567_spi.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/spi/spi.h
"
6
7
namespace
esphome
{
8
namespace
st7567_spi {
9
10
class
SPIST7567
:
public
st7567_base::ST7567
,
11
public
spi::SPIDevice
<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
12
spi::DATA_RATE_8MHZ> {
13
public
:
14
void
set_dc_pin
(
GPIOPin
*dc_pin) {
dc_pin_
= dc_pin; }
15
16
void
setup
()
override
;
17
18
void
dump_config
()
override
;
19
20
protected
:
21
void
command
(uint8_t value)
override
;
22
23
void
write_display_data
()
override
;
24
25
GPIOPin
*
dc_pin_
;
26
};
27
28
}
// namespace st7567_spi
29
}
// namespace esphome
esphome::st7567_spi::SPIST7567::setup
void setup() override
Definition:
st7567_spi.cpp:9
esphome::st7567_spi::SPIST7567::set_dc_pin
void set_dc_pin(GPIOPin *dc_pin)
Definition:
st7567_spi.h:14
spi.h
st7567_base.h
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition:
spi.h:391
esphome::st7567_spi::SPIST7567::write_display_data
void write_display_data() override
Definition:
st7567_spi.cpp:46
esphome::st7567_spi::SPIST7567::command
void command(uint8_t value) override
Definition:
st7567_spi.cpp:32
esphome::st7567_spi::SPIST7567
Definition:
st7567_spi.h:10
esphome::st7567_spi::SPIST7567::dump_config
void dump_config() override
Definition:
st7567_spi.cpp:20
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::st7567_spi::SPIST7567::dc_pin_
GPIOPin * dc_pin_
Definition:
st7567_spi.h:25
esphome::st7567_base::ST7567
Definition:
st7567_base.h:37
esphome::GPIOPin
Definition:
gpio.h:50
Generated by
1.8.13