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

Able to map GPIO pins to both inputs and display on newly flashed board #875

Open
1 task
InfraredAces opened this issue Mar 2, 2024 · 1 comment
Open
1 task
Labels
bug Something isn't working

Comments

@InfraredAces
Copy link
Contributor

Prerequisites

Please check the following before posting an issue / bug report.

  • I am running the latest version of the firmware found HERE
  • [ X ] I have checked the documentation HERE and found no answer
  • [ X ] I checked to make sure that this issue has not already been filed HERE
  • [ X ] I am reporting the issue to the correct repository

Context

Please provide all relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Expected Behavior

Post nuking the board and flashing firmware that has a OLED display set up in the configuration, the pins used for I2C should not be available under Pin Mapping to be assigned (greyed out with "Assigned to Add-on").

Current Behavior

Post nuking the board and flashing firmware that has a OLED display set up in the configuration, the pins used for I2C are available under Pin Mapping to be assigned (greyed out with "Assigned to Add-on"). When they are assigned to inputs and the controller is rebooted, the inputs will flicker when viewed with a gamepad tester.

Steps to Reproduce

For a Haute42 S16:

  1. Flash nuke the board
  2. Flash board with firmware (https://github.com/OpenStickCommunity/GP2040-CE/actions/runs/8074808316/artifacts/1281028382)
  3. Boot into Web Configurator
  4. Assign Pins 0 & 1 under Pin Mappings to down and left, respectively
  5. Save
  6. Reboot into controller mode
  7. View Controller through gamepad tester (https://hardwaretester.com/gamepad)

Screenshots & Files

image

image

image

image

(Was able to successfully save pin mappings)

Miscellaneous Notes

If you change and save the pin assignments (GPIO 0& 1) and then go back to the Display Configuration, you do see that the pins are now shown as "In Use" and you cannot save. However, if they are not changed, the display works using those pins while the newly mapped inputs are flashing.

@bsstephan
Copy link
Contributor

This would have to be fixed in the initUnset... it sounds like.

@bsstephan bsstephan added the bug Something isn't working label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants