Bonjour

Je n'arrive pas a faire fonctionner correctement un pavé numérique avec l'arduino giga.
Je suis sous Windows et j'utilise l'IDE 2.1.0.
J'ai "uploader" le code suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <Keypad.h>
 
#define ROWS 4
#define COLS 4
 
const char kp4x4Keys[ROWS][COLS] 	= {{'1', '2', '3', 'A'}, {'4', '5', '6', 'B'}, {'7', '8', '9', 'C'}, {'*', '0', '#', 'D'}};
byte rowKp4x4Pin [4] = {9, 8, 7, 6};
byte colKp4x4Pin [4] = {5, 4, 3, 2};
 
Keypad kp4x4 	= Keypad(makeKeymap(kp4x4Keys), rowKp4x4Pin, colKp4x4Pin, ROWS, COLS);
 
void setup() {
 	Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }
 	Serial.print("Initialize System");
}
void loop() {
 	readKp4x4();
}
 
void readKp4x4() { 
 
 	char customKey = kp4x4.getKey();
 	if (customKey) {
 			Serial.println(customKey);
 	}
}
Chose étrange, lorsque je branche le clavier sur les pins 9,8,7 ou 6 de l'arduino Nom : keypad-4x4-module.jpg
Affichages : 172
Taille : 60,4 Ko
sur le serial monitor j'ai un défilement infini du chiffre/lettre correspondant aux pins 9,8,7 ou 6, dans mon cas le 1,4,7 ou *
Si quelqu'un pourrait m'aider ce serait super.

Merci.