I'm really struggling with these incredible devices and I am not sure what approach to take yet.
Using the ESP8266 for WiFi connectivity and IO would be an easy solution but the ESP8266-12Es just don't have enough IO available on them. My Mega is currently using 11 analog and 12 digital pins and I still need to add a display!
These are the options I am considering:
- 1. Connect the ESP8266 to the Mega so that it can use this library:
GitHub - bportaluri/WiFiEsp: Arduino WiFi library for ESP8266 modules
https://github.com/bportaluri/WiFiEsp
- 2. Make the Mega and ESP8266 work together in a master slave relationship over the I2C bus
Arduino as I2C Slave ?
http://forum.arduino.cc/index.php?topic=38411.0
TekMason