Étape 1: Accrochant up(code)
#include < LiquidCrystal.h >
Innovente lcd (8, 9, 4, 5, 6, 7) ;
readkey int ;
void setup() {}
LCD.Begin (16, 2) ;
LCD.Print (« fête des pères") ;
}
void loop() {}
lcd.setCursor (0, 1) ;
LCD.Print ("ce n’est pas?") ;
ReadKey=analogRead(0) ;
Si (readkey < 50) {}
LCD.Clear() ;
LCD.Print ("bouton droit") ;
}
d’autre if(readkey<195) {}
LCD.Clear() ;
LCD.Print ("une touche") ;
}
d’autre if(readkey<380) {}
LCD.Clear() ;
LCD.Print ("bouton Down") ;
}
d’autre if(readkey<790) {}
LCD.Clear() ;
LCD.Print ("bouton gauche") ;
}
}