Projet STI: Piloter un bargraphe avec un potentiometre

Bonjour,

pour mon projet de terminal STI2D je dois piloter un bargraphe avec un potentiometre exactement comme ceci: Afficheur bargraphe et potentiometre - YouTube

Cependant toutes mes tentatives sont infructueuse, j'en appelle alors a votre aide

Merci

A LIRE

Notamment les points 4 et 5.