Skip to main content

Peripheral Basics

Inkplate 4 TEMPERA includes several onboard peripherals designed to extend its functionality and adapt it to a wide range of projects. These include sensors, a touchscreen, a frontlight system, and more. To conserve power and ensure proper initialization, each peripheral must be individually powered on before use.

All peripherals are managed through the Inkplate library using the wakePeripheral() and sleepPeripheral() functions.


Powering on

Peripherals are asleep by default. You must explicitly wake them before use with inkplate.wakePeripheral() — failing to do so will lead to initialization or communication failures.

To enable a peripheral:

inkplate.wakePeripheral(INKPLATE_APDS9960); // Wake the gesture sensor

inkplate.wakePeripheral()

Powers on a peripheral device on the Inkplate 4 TEMPERA.

Returns value: None

Function parameters:

TypeNameDescription
uint8_tperipheralPeripheral constant (e.g., INKPLATE_TOUCH, INKPLATE_BME688, INKPLATE_APDS9960).

Powering off

To save power, especially during battery operation or deep sleep, you can power off peripherals when they’re not in use:

inkplate.sleepPeripheral(INKPLATE_APDS9960); // Put the gesture sensor to sleep

inkplate.sleepPeripheral()

Puts the selected peripheral into low-power sleep mode.

Returns value: None

Function parameters:

TypeNameDescription
uint8_tperipheralPeripheral constant (same values as used with wakePeripheral).