Added compiler flag checks and correct int sizes for ESP8266 and ESP32;
Wrapped AVR specific includes and code inside AVR precompiler directives;
Wrapped TWBR usage inside #ifdef directive.
This is not fully tested.
Only had the chance to test with ESP8266 and ESP32.
Was in the process of adapting the original library for ESP32 as well and then saw this! Confirm it works with ESP32 and ESP8266 like a charm. Thank you so much! :)
Added compiler flag checks and correct int sizes for ESP8266 and ESP32; Wrapped AVR specific includes and code inside AVR precompiler directives; Wrapped TWBR usage inside #ifdef directive.
This is not fully tested. Only had the chance to test with ESP8266 and ESP32.