u8x8_riotos_t Struct Reference

Holds RIOT-OS specific peripheral data. More...

Detailed Description

Holds RIOT-OS specific peripheral data.

This structure has to be set via the U8g2 function u8g2_SetUserPtr, prior the call to u8x8_InitDisplay or u8g2_InitDisplay respectively.

The structure can be easily extended with further required definitions (e.g other pins) if necessary, without breaking the RIOT-OS adaptation of U8g2.

Definition at line 42 of file u8x8_riotos.h.

#include <u8x8_riotos.h>

Data Fields

void * user_ptr
 Pointer to optionally store any additional user-data.
 
unsigned int device_index
 Index of the SPI/I2C device.
 
gpio_t pin_cs
 Pin for SPI CS, GPIO_UNDEF if not used.
 
gpio_t pin_dc
 Pin for SPI DC, GPIO_UNDEF if not used.
 
gpio_t pin_reset
 Pin for RESET, GPIO_UNDEF if not used.
 

The documentation for this struct was generated from the following file: