How kleutzinger-forks/haybox-gramctrl-kevbot works
Main Components
a) Hardware Abstraction Layer (HAL)
• Two main microcontroller platforms: AVR and Pico
• Sub-components for USB and non-USB variants
• GPIO, Serial, and Communication interfaces
b) Core System
• Input Processing Layer
• SOCD (Simultaneous Opposite Cardinal Direction) Handling
• State Management
• Controller Mode Management
c) Input Sources
• GPIO Buttons
• Switch Matrix
• GameCube Controller
• Nunchuk
d) Communication Backends
• DInput
• XInput
• GameCube
• N64
• Nintendo Switch
• B0XX Input Viewer
e) Game-Specific Modes
• Melee (Traditional and WASD)
• FGC (Traditional and WASD)
• Ultimate
• Project M
• Rivals
• Extra Games Support
[Hardware Layer (AVR/Pico)] → [HAL] → [Core System] → [Input Processing] → [Mode-Specific Logic] → [Output Backends]
Connection Types
[Input Source] → [Mode Selection Logic] → [Active Game Mode] → [Output Backend]
Configuration System
How different board configurations (b0xx_r1, b0xx_r2, gccmx, etc.) interact with the core system.
Key Relationships to Highlight
• Input source to SOCD handling
• Mode-specific logic to communication backends
• Configuration system to HAL
• USB/Non-USB variants in the HAL layer
For this specific project, emphasize:
The configuration system's role
Keep the abstraction level focused on the major architectural components while showing the key relationships between the different subsystems. This will help maintain clarity while still conveying the complexity and flexibility of the system.