SparkFun SSD168x Library  v1.0.2
Library for SSD1680 / SSD1681 e-paper displays on SPI
Loading...
Searching...
No Matches
sfe_platform.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Date
2026

SPDX-License-Identifier: MIT

Please see LICENSE.md for more details

https://github.com/sparkfun/SparkFun_SSD168x_Library

Platform portability layer.

This library builds both as an Arduino Library and as an Espressif ESP-IDF Component. Everything that is platform-specific - apart from the hardware bus classes in sfe_bus.h / sfe_bus.cpp (Arduino) and sfe_bus_esp_idf.h / sfe_bus_esp_idf.cpp (ESP-IDF) - lives here:

sfe_millis() milliseconds since boot (wraps like Arduino millis()) sfe_delay(ms) delay / yield to the RTOS sfe_pin_output(pin) configure a GPIO as an output sfe_pin_input(pin) configure a GPIO as an input sfe_pin_write(pin, high) drive a GPIO high or low sfe_pin_read(pin) read the level of a GPIO sfe_string_t the string type used by getFontName() etc. (Arduino String, or std::string on ESP-IDF) DEC / HEX number bases for debugPrint()

Everything here is inside namespace SparkFun_SSD168x, so this library can be used together with other SparkFun libraries which have their own sfe_platform.h.

The platform is selected automatically: ARDUINO defined -> Arduino (this includes arduino-esp32 used as an ESP-IDF component) ESP_PLATFORM defined -> native ESP-IDF