#define pinAxeY A0 #define pinBouton 2 #define pinLed 13 void setup() { Serial.begin(115200); pinMode(pinBouton, INPUT_PULLUP); pinMode(pinLed, OUTPUT); } void loop() { Serial.print(analogRead(A0)); Serial.print(" "); Serial.println(digitalRead(pinBouton)); delay(20); }