Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for an ESP8266 master #9

Open
jazzgil opened this issue Mar 30, 2019 · 3 comments
Open

Support for an ESP8266 master #9

jazzgil opened this issue Mar 30, 2019 · 3 comments

Comments

@jazzgil
Copy link

jazzgil commented Mar 30, 2019

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!

@mikaelpatel
Copy link
Owner

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.

@jazzgil
Copy link
Author

jazzgil commented Apr 2, 2019

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

@msbaranov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants