29 #ifndef _SSD1306_HAL_IO_H_ 30 #define _SSD1306_HAL_IO_H_ 43 #include "arduino/io.h" 44 #elif defined(__AVR__) && !defined(ARDUINO) 46 #elif defined(__XTENSA__) && !defined(ARDUINO) 48 #elif defined(STM32F1) || defined(STM32F2) || defined(STM32F4) 50 #elif defined(__linux__) 52 #elif defined(__MINGW32__) 55 #warning "Platform is not supported. Use template to add support" 56 #include "template/io.h" 59 #ifndef LCDINT_TYPES_DEFINED 61 #define LCDINT_TYPES_DEFINED 69 #define ssd1306_swap_data(a, b, type) { type t = a; a = b; b = t; } 76 #if defined(CONFIG_PLATFORM_I2C_AVAILABLE) && defined(CONFIG_PLATFORM_I2C_ENABLE) 104 #if defined(CONFIG_PLATFORM_SPI_AVAILABLE) && defined(CONFIG_PLATFORM_SPI_ENABLE)
void ssd1306_platform_spiInit(int8_t busId, int8_t cesPin, int8_t dcPin)
Initializes spi interface for platform being used.
void ssd1306_platform_i2cInit(int8_t busId, uint8_t addr, ssd1306_platform_i2cConfig_t *cfg)
Initializes i2c interface for platform being used.