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

ESP32 support #41

Open
seanwoodward33 opened this issue May 12, 2024 · 0 comments
Open

ESP32 support #41

seanwoodward33 opened this issue May 12, 2024 · 0 comments

Comments

@seanwoodward33
Copy link

Hi Bill,
I'm not sure if you still keep an eye on comments here but thought this the best way to reach you now that I can't leave a comment on your webpage.
I was running into issues using your code, partially due to issues I was having with my wiring but also I think because I'm using an ESP32 rather than an Arduino Uno.
I found a fork of your code here:
https://github.com/MyArduinoLib/Arduino-PS2X-ESP32/tree/master
where the only difference is everywhere you make a condition for the ESP8266 in the PS2X_lib.cpp and PS2X_lib.h it's been changed to also reference the ESP32. So lines
#ifdef ESP8266
become
#if defined(ESP8266) || defined(ESP32)
It's only a minor change and now I've fixed my wiring I've not gone back to see if that's the sole cause of the error but I thought you might want to know. That or it may be useful to someone else to see what I've discovered.
Thanks for the great library, I love it.
Many thanks

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

1 participant