ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::epaper_spi Namespace Reference

Data Structures

class  EPaperBase
 
class  EPaperJD79660
 JD7966x IC driver implementation. More...
 
class  EPaperMono
 A class for monochrome epaper displays. More...
 
class  EPaperSpectraE6
 
class  EpaperWaveshare
 An epaper display that needs LUTs to be sent to it. More...
 
class  EPaperWeAct3C
 WeAct 3-color e-paper displays (SSD1683 controller). More...
 

Enumerations

enum class  EPaperState : uint8_t {
  IDLE , UPDATE , RESET , RESET_END ,
  SHOULD_WAIT , INITIALISE , TRANSFER_DATA , POWER_ON ,
  REFRESH_SCREEN , POWER_OFF , DEEP_SLEEP
}
 
enum  JD79660Color : uint8_t { BLACK = 0b00 , WHITE = 0b01 , YELLOW = 0b10 , RED = 0b11 }
 Pixel color as 2bpp. More...
 
enum  E6Color {
  BLACK = 0b00 , WHITE = 0b01 , YELLOW = 0b10 , RED = 0b11 ,
  SKIP_1 , BLUE , GREEN , CYAN ,
  SKIP_2
}
 
enum class  BwrState : uint8_t { BWR_BLACK , BWR_WHITE , BWR_RED }
 

Functions

template<typename NATIVE_COLOR >
constexpr NATIVE_COLOR color_to_bwyr (Color color, NATIVE_COLOR hw_black, NATIVE_COLOR hw_white, NATIVE_COLOR hw_yellow, NATIVE_COLOR hw_red)
 Map RGB color to discrete BWYR hex 4 color key.
 

Enumeration Type Documentation

◆ BwrState

enum class esphome::epaper_spi::BwrState : uint8_t
strong
Enumerator
BWR_BLACK 
BWR_WHITE 
BWR_RED 

Definition at line 8 of file epaper_weact_3c.cpp.

◆ E6Color

Enumerator
BLACK 
WHITE 
YELLOW 
RED 
SKIP_1 
BLUE 
GREEN 
CYAN 
SKIP_2 

Definition at line 11 of file epaper_spi_spectra_e6.cpp.

◆ EPaperState

enum class esphome::epaper_spi::EPaperState : uint8_t
strong
Enumerator
IDLE 
UPDATE 
RESET 
RESET_END 
SHOULD_WAIT 
INITIALISE 
TRANSFER_DATA 
POWER_ON 
REFRESH_SCREEN 
POWER_OFF 
DEEP_SLEEP 

Definition at line 11 of file epaper_spi.h.

◆ JD79660Color

Pixel color as 2bpp.

Must match IC LUT values.

Enumerator
BLACK 
WHITE 
YELLOW 
RED 

Definition at line 10 of file epaper_spi_jd79660.cpp.

Function Documentation

◆ color_to_bwyr()

template<typename NATIVE_COLOR >
NATIVE_COLOR esphome::epaper_spi::color_to_bwyr ( Color color,
NATIVE_COLOR hw_black,
NATIVE_COLOR hw_white,
NATIVE_COLOR hw_yellow,
NATIVE_COLOR hw_red )
constexpr

Map RGB color to discrete BWYR hex 4 color key.

Template Parameters
NATIVE_COLORType of native hardware color values
Parameters
colorRGB color to convert from
hw_blackNative value for black
hw_whiteNative value for white
hw_yellowNative value for yellow
hw_redNative value for red
Returns
Converted native hardware color value

Definition at line 31 of file colorconv.h.