Fix G27 shifter buttons and add SPI3 support for wheel rim#182
Open
OrlandoEduardo101 wants to merge 1 commit intoUltrawipf:developmentfrom
Open
Fix G27 shifter buttons and add SPI3 support for wheel rim#182OrlandoEduardo101 wants to merge 1 commit intoUltrawipf:developmentfrom
OrlandoEduardo101 wants to merge 1 commit intoUltrawipf:developmentfrom
Conversation
## ShifterAnalog G27 Mode Fix - Fix SPI clock configuration for 74HC165 (CLKPhase, CLKPolarity) - Add CS polarity configuration for active-low operation - Change to synchronous SPI read for reliable button reading - Fix CS pin index off-by-one error in setMode() and setCSPin() - Add startRead() method to trigger SPI before processing data ## SPI Buttons 3 (SPI3 Support) - Add SPI_Buttons_3 class using SPI3 peripheral for separate button source - Required because 74HC165 lacks tri-state output (cannot share MISO) - Allows G27 shifter (SPI2) and wheel rim (SPI3) to work simultaneously - SPI3 pins: PC10 (SCK), PC11 (MISO), PA15 (CS1) ## Hardware Configuration (F407VG) - Reduce SPI3 baud rate for reliable 74HC165 communication - Initialize SPI CS pins HIGH (inactive) to prevent bus contention - Enable SPIBUTTONS3 feature flag ## Documentation - Add complete wiring guide for all G27 components - Add technical reports documenting bugs and solutions - Bilingual documentation (English/Portuguese) Tested with Logitech G27 on STM32F407VET6 board. Made-with: Cursor
4ec89a2 to
f2c8df3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes G27 shifter buttons not working in ShifterAnalog G27 mode and adds SPI3 support for connecting the G27 wheel rim buttons on a separate SPI bus.
Problem
Solution
ShifterAnalog Fixes
SPI3 Support (SPI_Buttons_3)
Testing
Tested on STM32F407VET6 board with:
Documentation
Added
doc/logitech g27/folder with:Checklist