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 ESP-32 #3

Closed
alpha815 opened this issue Sep 5, 2022 · 2 comments
Closed

Support for ESP-32 #3

alpha815 opened this issue Sep 5, 2022 · 2 comments

Comments

@alpha815
Copy link

alpha815 commented Sep 5, 2022

While i was trying to hookup this breakout board to esp-32 and loaded basic example code, it seems that RGB values in setup are being set by esp-32, but when i move the trackball it does not appear to update the left, right, up and down position. then again i tested it on Arduino Uno it worked fine.

Arduino ESP-32 Core Version: 2.0.3
ESP-32 board tested on ESP-32 TINY-PICO.

So it seems for some reasons support for esp-32 is broken.

Serial monitor output with esp-32.
output
Serial monitor output with Arduino.
Uno

Compiler Warning;

D:\Arduino\libraries\pimoroniTrackball-0.1.2\src\pimoroniTrackball.cpp: In member function 'bool pimoroniTrackball::isConnected()':
D:\Arduino\libraries\pimoroniTrackball-0.1.2\src\pimoroniTrackball.cpp:37:51: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
   _i2cPort->requestFrom(_trackballAddress, 2, true);
                                               ^
@ncmreynolds
Copy link
Owner

Hi, thanks for spotting this issue I only tested with AVR and ESP8266. I've been able to replicate it on ESP32-S2 and am looking at it now.

ncmreynolds added a commit that referenced this issue Oct 8, 2022
…) that caused it to fail on ESP32 and maybe other targets

Fix compiler warnings for use of TwoWire.requestFrom(int, int, int)
Fix some style issues and tidy up
@ncmreynolds
Copy link
Owner

This should be fixed in release 0.1.3. Which I've just packaged up and will appear in the Arduino Library Manager soon.

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

2 participants