|
TinyGPU
|
Drop-in replacement for #include <Arduino.h> (plus <SPI.h>/ <Wire.h> where needed) for every file under TinyGPU/Drivers and TinyGPU/Input - include this instead of those directly.
More...
#include "TinyGPU/Abstractions/EmulationDesktop.h"

Go to the source code of this file.
Drop-in replacement for #include <Arduino.h> (plus <SPI.h>/ <Wire.h> where needed) for every file under TinyGPU/Drivers and TinyGPU/Input - include this instead of those directly.
Resolves to one of three things, depending on what's available:
<Arduino.h>/<SPI.h>/<Wire.h> - nothing of this project's own is defined.idf_component_register, without arduino-esp32): TinyGPU/Abstractions/EmulationIDF.h - an ESP-IDF- native emulation of delay()/millis(), pinMode()/digitalWrite()/ digitalRead(), and SPIClass/TwoWire (+ the global SPI/Wire instances).Neither fallback is a general Arduino-core replacement - each only covers the calls this library's own Drivers/Input headers make (verified by grepping them), not the full Arduino API. A sketch built against either fallback that calls other Arduino functions will still need its own additions, or the real Arduino core after all.
Both fallbacks define their symbols inside namespace tinygpu (not globally) - safe to do since every call site (all of TinyGPU/Drivers and TinyGPU/Input) lives inside that same namespace, so unqualified lookup finds them there. Only the real-Arduino-core branch leaves things where that core put them (global/arduino::), since that's not this project's code to move.