Adafruit Library
Typedefs | Functions
hardware.cpp File Reference
#include "controller.h"

Typedefs

using FnCreateDispDrvEpd = std::function< dispDrvBase *(int16_t, int16_t, int16_t, int16_t, int16_t)>
 Lambda function to create a dispDrvBase EPD instance.
 
using FnCreateDispDrvTft = std::function< dispDrvBase *(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)>
 Lambda function to create a dispDrvBase SPI TFT instance.
 

Functions

dispDrvBaseCreateDrvDispEpd (wippersnapper_display_v1_DisplayDriver driver, int16_t dc, int16_t rst, int16_t cs, int16_t sram_cs=-1, int16_t busy=-1)
 Creates a new E-Ink display driver instance based on the driver name. More...
 
dispDrvBaseCreateDrvDispTft (wippersnapper_display_v1_DisplayDriver driver, int16_t cs, int16_t dc, int16_t mosi, int16_t sck, int16_t rst=-1, int16_t miso=-1)
 Creates a new SPI TFT display driver instance based on the driver name. More...
 

Detailed Description

Implementation for the display hardware.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Copyright (c) Brent Rubell 2025 for Adafruit Industries.

BSD license, all text here must be included in any redistribution.

Function Documentation

◆ CreateDrvDispEpd()

dispDrvBase* CreateDrvDispEpd ( wippersnapper_display_v1_DisplayDriver  driver,
int16_t  dc,
int16_t  rst,
int16_t  cs,
int16_t  sram_cs = -1,
int16_t  busy = -1 
)

Creates a new E-Ink display driver instance based on the driver name.

Parameters
driverThe name of the DisplayDriver.
dcData/Command pin number.
rstReset pin number.
csChip Select pin number.
sram_csOptional SRAM Chip Select pin number (default: -1).
busyOptional Busy pin number (default: -1).
Returns
Pointer to the created display driver instance, or nullptr if the driver name is not recognized.

◆ CreateDrvDispTft()

dispDrvBase* CreateDrvDispTft ( wippersnapper_display_v1_DisplayDriver  driver,
int16_t  cs,
int16_t  dc,
int16_t  mosi,
int16_t  sck,
int16_t  rst = -1,
int16_t  miso = -1 
)

Creates a new SPI TFT display driver instance based on the driver name.

Parameters
driverThe name of the DisplayDriver.
csChip Select pin number.
dcData/Command pin number.
mosiMOSI pin number.
sckSCK pin number.
rstOptional Reset pin number (default: -1).
misoOptional MISO pin number (default: -1).
Returns
Pointer to the created display driver instance, or nullptr if the driver name is not recognized.