hello i want arduino work mqtt, have connected esp 01. have encountered many problems esp 01 moved adafruit huzzah breakout board. have used i2c communication between arduino , huzzah. works fine me. every time need write 2 codes 1 slave , master. there way can use these devices 1 code, mean use esp 01 module. please let me know if possible. i don't have experience i 2 c maybe there's way via protocol here's take: there macros defined each architecture. since boards have different architecture can use these macros enable appropriate code board it's running on. example, if "arduino" board avr(uno, mega, leonardo, nano, pro mini, etc.): code: [select] #ifdef __avr__ // write avr board specific code here #else // write esp8266 board specific code here #endif Arduino Forum > Using Arduino > Microcontrollers > ...
Comments
Post a Comment