Skip to content

Commit 8947edf

Browse files
Orlando Eduardo Pereiracursoragent
andcommitted
Fix incorrect analog pin mapping in documentation
Changed Clutch pedal pin from PA6 to PC3 (AIN2) to match the actual F407VG hardware configuration in main.h: - AIN0 = PA3 (Brake) - AIN1 = PA2 (Throttle) - AIN2 = PC3 (Clutch) ← was incorrectly listed as PA6 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f2c8df3 commit 8947edf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc/logitech g27/G27_COMPLETE_WIRING_GUIDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The G27 pedals use **3 potentiometers** for throttle, brake, and clutch. This co
163163
|----------|-----------------|----------------|-------|
164164
| Throttle | Analog 1 (PA2) | - | Accelerator pedal |
165165
| Brake | Analog 2 (PA3) | - | Brake pedal |
166-
| Clutch | Analog 3 (PA6) | - | Clutch pedal |
166+
| Clutch | Analog 3 (PC3) | - | Clutch pedal |
167167
| VCC | 3.3V | Red | Potentiometer power |
168168
| GND | GND | Black | Ground |
169169

@@ -182,7 +182,7 @@ Os pedais do G27 usam **3 potenciômetros** para acelerador, freio e embreagem.
182182
|--------|------------------|---------------|-------|
183183
| Acelerador | Analog 1 (PA2) | - | Pedal do acelerador |
184184
| Freio | Analog 2 (PA3) | - | Pedal do freio |
185-
| Embreagem | Analog 3 (PA6) | - | Pedal da embreagem |
185+
| Embreagem | Analog 3 (PC3) | - | Pedal da embreagem |
186186
| VCC | 3.3V | Vermelho | Alimentação dos potenciômetros |
187187
| GND | GND | Preto | Terra |
188188

@@ -310,7 +310,7 @@ O registrador 74HC165 **não tem saída tri-state**. Quando dois 74HC165 compart
310310
│ PEDALS (Standard Wiki Connection) │
311311
│ ├── Throttle ───── PA2 (Analog 1) │
312312
│ ├── Brake ──────── PA3 (Analog 2) │
313-
│ ├── Clutch ─────── PA6 (Analog 3) │
313+
│ ├── Clutch ─────── PC3 (Analog 3) │
314314
│ ├── VCC ────────── 3.3V │
315315
│ └── GND ────────── GND │
316316
│ │
@@ -341,7 +341,7 @@ O registrador 74HC165 **não tem saída tri-state**. Quando dois 74HC165 compart
341341
| Motor | PWM | PE11 | External PSU | H-bridge required, torque curve 0.60-0.70 |
342342
| Encoder (Original) | Quadrature | PA0, PA1 | 5V | ABN type, CPR 2400 |
343343
| Encoder (MT6835) | Quadrature | PA0, PA1 | 5V | ABN type, CPR 65535, ratio 11:180 ⭐ |
344-
| Pedals | Analog | PA2, PA3, PA6 | 3.3V | Standard wiki connection |
344+
| Pedals | Analog | PA2, PA3, PC3 | 3.3V | Standard wiki connection |
345345
| Shifter | SPI2 | PB13, PB14, PB12 | 3.3V | G27 mode |
346346
| Wheel Rim | SPI3 | PC10, PC11, PA15 | 3.3V | Custom firmware required |
347347

doc/logitech g27/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ See [G27_COMPLETE_WIRING_GUIDE.md](G27_COMPLETE_WIRING_GUIDE.md) for detailed pi
9494
|-----------|-----------|-----------|
9595
| Motor | PWM | PE9, PE11 |
9696
| Encoder | ABN | PA0, PA1 |
97-
| Pedals | Analog | PA2, PA3, PA6 |
97+
| Pedals | Analog | PA2, PA3, PC3 |
9898
| Shifter | SPI2 | PB12, PB13, PB14 |
9999
| Wheel Rim | SPI3 | PA15, PC10, PC11 |
100100

0 commit comments

Comments
 (0)