LCDGFX LCD display driver  1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
io.h File Reference

SSD1306 HAL IO communication functions. More...

#include "UserSettings.h"
#include "interface.h"
#include <stdint.h>
#include "custom_interface.h"
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PlatformI2c
 PlatformI2c implementation for current platform. More...
 
class  PlatformSpi
 PlatformSpi implementation for current platform. More...
 

Macros

#define LCDINT_TYPES_DEFINED
 Macro informs if lcdint_t type is defined.
 
#define ssd1306_swap_data(a, b, type)
 swaps content of a and b variables of type type More...
 
#define LCD_LOW   0
 Constant corresponds to low level of gpio pin.
 
#define LCD_HIGH   1
 Constant corresponds to high level of gpio pin.
 
#define LCD_GPIO_INPUT   0
 Constant corresponds to input mode of gpio.
 
#define LCD_GPIO_OUTPUT   1
 Constant corresponds to output mode of gpio.
 
#define LCD_GPIO_INPUT_PULLUP   2
 Constant corresponds to input mode of gpio with pullup resistor enabled.
 
#define LCD_GPIO_INPUT_PULLDOWN   3
 Constant corresponds to output mode of gpio with pulldown resistor enabled.
 
#define LCD_PROGMEM   PROGMEM
 LCD_PROGMEM constant is used to specify data stored in flash, platform specific.
 
#define CONFIG_LCDGFX_PLATFORM_I2C
 
#define CONFIG_LCDGFX_PLATFORM_SPI
 

Typedefs

typedef int lcdint_t
 internal int type, used by ssd1306 library. More...
 
typedef unsigned int lcduint_t
 internal int type, used by ssd1306 library. More...
 

Functions

void lcd_gpioMode (int pin, int mode)
 Sets gpio pin mode. More...
 
int lcd_gpioRead (int pin)
 Reads gpio pin value. More...
 
void lcd_gpioWrite (int pin, int level)
 Writes value to gpio. More...
 
int lcd_adcRead (int pin)
 Read ADC data. More...
 
uint32_t lcd_millis (void)
 returns 32-bit timestamp from system power-up in milliseconds
 
uint32_t lcd_micros (void)
 returns 32-bit timestamp from system power-up in microseconds
 
void lcd_randomSeed (int seed)
 Initializes RND device. More...
 
void lcd_attachInterrupt (int pin, void(*interrupt)(), int level)
 Attaches interrupt handler to pin. More...
 
void lcd_delay (unsigned long ms)
 Forces current thread to sleeps for specified number of milliseconds. More...
 
void lcd_delayUs (unsigned long us)
 Forces current thread to sleeps for specified number of microseconds. More...
 
uint8_t lcd_pgmReadByte (const void *ptr)
 Read single data byte directly from flash. More...
 
uint16_t lcd_eepromReadWord (const void *ptr)
 Reads 16-bit from eeprom. More...
 
void lcd_eepromWriteWord (const void *ptr, uint16_t val)
 Writes 16-bit to eeprom. More...
 
int lcd_random (int max)
 Returns random number in range [0;max]. More...
 
int lcd_random (int min, int max)
 Returns random number in range [min;max]. More...
 

Detailed Description

SSD1306 HAL IO communication functions.

Definition in file io.h.