Old mapping (historique)¶
Ce fichier conserve l’ancien mapping des pins Teensy 4.1 (avant réorganisation début mars 2026), au cas où le nouveau câblage ne fonctionnerait pas et qu’il faut revenir au câblage d’origine.
Matrice d’accords (3 colonnes × 5 rangées)¶
Ancien code dans input.cpp:
| Signal | Pins Teensy | Mode | Remarques |
|---|---|---|---|
| Colonnes (3) | 12, 8, 9 | OUTPUT | Colonnes au repos = HIGH, scan en tirant 1 colonne à LOW |
| Rangées (5) | 5, 6, 15, 23, 22 | INPUT_PULLUP | Actif quand la touche relie une rangée à la colonne à LOW |
Joystick (navigation menu)¶
Ancien code dans input.h:
| Fonction | Pin Teensy | Mode | Logique |
|---|---|---|---|
| UP | 28 | INPUT_PULLUP | Actif à LOW |
| DOWN | 29 | INPUT_PULLUP | Actif à LOW |
| LEFT | 30 | INPUT_PULLUP | Actif à LOW |
| RIGHT | 31 | INPUT_PULLUP | Actif à LOW |
| OK (press) | 32 | INPUT_PULLUP | Actif à LOW |
I2C (OLED + MPR121) — bus Wire¶
Ancien code dans ui.cpp:
| Bus | SDA | SCL | Vitesse | Périphériques |
|---|---|---|---|---|
Wire (I2C0) |
18 | 19 | 400 kHz | OLED SSD1306 (0x3C), MPR121 (0x5A) |
Indicateur batterie/charge (MCP73871)¶
Ancien code dans battery.cpp:
| Fonction | Pin Teensy | Mode | Logique |
|---|---|---|---|
| C (Charging) | 33 | INPUT_PULLUP | Actif à LOW |
| D (Done) | 34 | INPUT_PULLUP | Actif à LOW |
Audio (sortie I2S)¶
Le projet utilise AudioOutputI2S (Teensy Audio Library). Pins I2S (Teensy 4.1):
| Signal I2S | Pin Teensy (T4.1) |
|---|---|
| LRCLK | 20 |
| BCLK | 21 |
| DIN (TX) | 7 |
| MCLK | 23 (si nécessaire) |
⚠️ Note importante: l’ancien mapping utilisait aussi le pin 23 comme rangée de matrice, ce qui pouvait entrer en conflit avec MCLK si le DAC I2S en avait besoin.
Résumé (par pin)¶
| Pin | Usage |
|---|---|
| 5 | Matrice rangée |
| 6 | Matrice rangée |
| 7 | Audio I2S DIN (TX) |
| 8 | Matrice colonne |
| 9 | Matrice colonne |
| 12 | Matrice colonne |
| 15 | Matrice rangée |
| 18 | I2C SDA (Wire) |
| 19 | I2C SCL (Wire) |
| 20 | Audio I2S LRCLK |
| 21 | Audio I2S BCLK |
| 22 | Matrice rangée |
| 23 | Matrice rangée (et MCLK I2S si utilisé) |
| 28 | Joystick UP |
| 29 | Joystick DOWN |
| 30 | Joystick LEFT |
| 31 | Joystick RIGHT |
| 32 | Joystick OK |
| 33 | MCP73871 C (Charging) |
| 34 | MCP73871 D (Done) |