9 static const char *
const TAG =
"pcd_8544";
66 uint8_t col, maxcol, p;
68 for (p = 0; p < 6; p++) {
78 for (; col <= maxcol; col++) {
93 uint8_t subpos = y % 8;
95 this->
buffer_[pos] |= (1 << subpos);
97 this->
buffer_[pos] &= ~(1 << subpos);
102 LOG_DISPLAY(
"",
"PCD8544",
this);
103 LOG_PIN(
" DC Pin: ", this->
dc_pin_);
105 LOG_UPDATE_INTERVAL(
this);
120 uint8_t
fill = color.
is_on() ? 0xFF : 0x00;
virtual void digital_write(bool value)=0
const uint8_t PCD8544_DISPLAYNORMAL
void spi_setup() override
const uint8_t PCD8544_EXTENDEDINSTRUCTION
void draw_absolute_pixel_internal(int x, int y, Color color) override
void write_byte(uint8_t data)
void fill(Color color) override
bool is_on() ESPHOME_ALWAYS_INLINE
void init_internal_(uint32_t buffer_length)
const uint8_t PCD8544_FUNCTIONSET
void dump_config() override
int get_width_internal() override
size_t get_buffer_length_()
void command(uint8_t value)
const uint8_t PCD8544_SETXADDR
const uint8_t PCD8544_SETYADDR
Implementation of SPI Controller mode.
const uint8_t PCD8544_SETBIAS
int get_height_internal() override
const uint8_t PCD8544_DISPLAYCONTROL
const uint8_t PCD8544_SETVOP
void IRAM_ATTR HOT delay(uint32_t ms)