ESPHome
2024.10.2
esphome
esphome
components
ssd1322_spi
ssd1322_spi.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/ssd1322_base/ssd1322_base.h
"
5
#include "
esphome/components/spi/spi.h
"
6
7
namespace
esphome
{
8
namespace
ssd1322_spi {
9
10
class
SPISSD1322
:
public
ssd1322_base::SSD1322
,
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
void
data
(uint8_t value)
override
;
23
24
void
write_display_data
()
override
;
25
26
GPIOPin
*
dc_pin_
;
27
};
28
29
}
// namespace ssd1322_spi
30
}
// namespace esphome
esphome::ssd1322_spi::SPISSD1322::setup
void setup() override
Definition:
ssd1322_spi.cpp:10
esphome::ssd1322_spi::SPISSD1322::data
void data(uint8_t value) override
Definition:
ssd1322_spi.cpp:43
ssd1322_base.h
esphome::ssd1322_spi::SPISSD1322::write_display_data
void write_display_data() override
Definition:
ssd1322_spi.cpp:56
esphome::ssd1322_spi::SPISSD1322::dc_pin_
GPIOPin * dc_pin_
Definition:
ssd1322_spi.h:26
spi.h
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition:
spi.h:391
esphome::ssd1322_base::SSD1322
Definition:
ssd1322_base.h:14
esphome::ssd1322_spi::SPISSD1322::dump_config
void dump_config() override
Definition:
ssd1322_spi.cpp:21
esphome::ssd1322_spi::SPISSD1322::command
void command(uint8_t value) override
Definition:
ssd1322_spi.cpp:30
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::ssd1322_spi::SPISSD1322::set_dc_pin
void set_dc_pin(GPIOPin *dc_pin)
Definition:
ssd1322_spi.h:14
esphome::GPIOPin
Definition:
gpio.h:50
esphome::ssd1322_spi::SPISSD1322
Definition:
ssd1322_spi.h:10
Generated by
1.8.13