GP2040-CE icon indicating copy to clipboard operation
GP2040-CE copied to clipboard

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

Open InfraredAces opened this issue 11 months ago • 1 comments

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.

  • Firmware Version: Latest (https://github.com/OpenStickCommunity/GP2040-CE/actions/runs/8074808316/artifacts/1281028382)
  • Name of device: Haute4s S16
  • Link to where you purchased the device: https://haute42.com/haute-pad-s-series/
  • Is this a custom build?: No
  • Operating System: EndeavourOS (6.7.1-arch1-1)
  • Browser: Chromium

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.

InfraredAces avatar Mar 02 '24 04:03 InfraredAces

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

bsstephan avatar Mar 03 '24 03:03 bsstephan