Arduino-OWI icon indicating copy to clipboard operation
Arduino-OWI copied to clipboard

Support for an ESP8266 master

Open jazzgil opened this issue 6 years ago • 3 comments

Hi,

I'd like to use the library to control several ATTiny44's from an ESP8266, and of course I'm getting the "WARNING: library Arduino-OWI-master claims to run on (avr, sam) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s)."

I'm trying to explore extent of changes I will need to make - does it sum up to adding a BOARD definition in Arduino-GPIO? Additional changes in Arduino-TWI? Or is it far more complex?

I'd be thankful if you could point me in the right direction...

Thanks!

jazzgil avatar Mar 30 '19 13:03 jazzgil

Adding the ESP8266 core support would require implementing the Board.h and GPIO.h files (in the Arduino-GPIO library). These are very straight forward as the ESP8266 core is nicely written and functions may be more or less copied from the core to build the GPIO class. After this, given that delayMicroseconds() is available, the other classes TWI, SPI, OWI, etc, will be up-and-running.

mikaelpatel avatar Mar 31 '19 21:03 mikaelpatel

Thanks @mikaelpatel. I'll take a stab at it and update if I run into road blocks.

jazzgil avatar Apr 02 '19 06:04 jazzgil

Hi @jazzgil. Have you managed to implement ESP8266 support? If yes, may I ask you share the code? Thank you in advance.

msbaranov avatar Jul 26 '19 16:07 msbaranov