An I2C wrapper class for remote analog and digital pin control.
This class mimicks the original pin read and write commands. It replicates all of the methods and transmits each method call via I2C to a target running the firmware.ino firmware, given that the pin control module is enabled at compile time. Functions and parameters without documentation will work just as their original, but you need to take the general restrictions into account (e.g. don't take a return value for valid without error handling).
- Note
- ESP32 needs ESP32 Arduino 2.0.1 (see board manager) or higher for native analogWrite() support.
-
analogReference() is only implemented for AVRs, ESPs don't have it.
- Todo:
- Only tested on AVRs.