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

Joy Featherwing only returns joystick values on HUZZAH32 with this library #2

Closed
SoftwareGuy opened this issue Mar 16, 2018 · 8 comments
Assignees

Comments

@SoftwareGuy
Copy link

Configuration: HUZZAH32 ESP32 Board + Joy Featherwing "jerryrigged" to the back of a LCD featherwing.

What I expected:
Joystick X and Y data plus buttons saying they've been pressed.

What I got:
Only joystick reports data back, buttons say nothing.

More info:

  • By jerryrigged, I mean I have male to female connectors connecting the required pins to the appropriate pins on the joywing.
  • ACT light does light up when polling for data. However, only the joystick works and it turns stuff like 513,516 etc. Pressing any button, be it A/B/X/Y/Select does nothing.
  • Optional interrupt pins are NOT in use.

Possible hardware defect or ESP32 cannot do bitmasks just yet on SDA/SCK?

@ladyada
Copy link
Member

ladyada commented Mar 16, 2018

the example code uses the IRQ, please use the featherwing as expected :)

@ladyada ladyada closed this as completed Mar 16, 2018
@SoftwareGuy
Copy link
Author

I am pretty sure I am using the example code 1:1 with a minor edit to the naming of the pins. I'll give this another shot.

@SoftwareGuy
Copy link
Author

SoftwareGuy commented Mar 17, 2018

Nope, double checked and uploaded the code to my ESP32 board. Only joystick input data gets returned on the Serial output, no button presses. Definitely something amiss here.

On the ESP32, pin 14 is also shared with the SDCard CS pin on the display feather wing. Is that causing a conflict? Note that I am NOT using the SD Card slot on the display featherwing.

@ladyada
Copy link
Member

ladyada commented Mar 17, 2018

ok we can take a look but we did test the ESP32 directly with this wing by plugging it in and it worked

@SoftwareGuy
Copy link
Author

Okay, so you say that the board did work directly on top of the HUZZAH32 without anything else attached? I see on your page that you have a demo video of someone pressing the buttons and a small color TFT breakout board showed the inputs. It does look like it was "stacked".

@SoftwareGuy
Copy link
Author

SoftwareGuy commented Mar 18, 2018

Okay, results are in. I sat down and unplugged the TFT display featherwing, plugged the HUZZAH32 into a bread board and attached wires from the esp32 to the Joywing.

Joystick info was returned. I checked the buttons. Got "Button A/B/X/Y" pressed.

So, it WAS a conflict with the SD card slot on the TFT Display Featherwing. I request that this finding needs to be documented on the TFT display featherwing or the Joywing page(s) as it may potentially catch out other developers. I suppose that the TFT Breakout shield won't be affected.

I am somewhat satisfied that this has been resolved, but I am bummed that it is incompatible with the TFT featherwing.

@ladyada
Copy link
Member

ladyada commented Mar 18, 2018

hmm there shouldnt be, the joy wing has all gpio handled in i2c (other than the irq), so it could be some other issue you've got? you can post in the forums for tech support - but this doesn't seem to be a seesaw bug :)

@ladyada ladyada closed this as completed Mar 18, 2018
@SoftwareGuy
Copy link
Author

Sure, I'll follow it up there.

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