Problème avec un programme

Bonjour j'ai rencontré un problème avec mon programme pour la création d'un adaptateur de shifter g29. J'ai le message d'erreur suivant : exit status 1
'Joystick' was not declared in this scope
Pourriez vous m'indiquer comment faire
Cordialement. Merci d'avance

Shifter_adapter.ino (3.03 KB)

Ce programme provient de cette source g29Shifter/g29shifter.ino at master · armandoiglesias/g29Shifter · GitHub
Un petit coup d’œil pour voir qu'il manque quelques lignes au début.

Je suis sous win10 avec un arduino nano, et lorsque je veux vérifier mon programme j'ai l'erreur suivante: Erreur de compilation pour la carte Arduino Nano

#include <Joystick.h>

void setup()

{pinMode(A0, INPUT); 
   Joystick.begin();}

const int pinToButtonMap = A0;

void loop()

{int pot = analogRead(A0);
int mapped = map(pot,0,1023,0,255);
{Joystick.setThrottle(mapped);}}

Pouvez vous m'aider

merci d'avance

I've merged your other cross-post @Ghost-sniper.

Cross posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

I also had to move your post out of the English language forum board. You already know well enough that there is a Français board so there is no excuse for you posting in French to the English boards.

It's time for you to get your act together and start acting responsibly. If I see you doing this stuff again you're going to get a suspension.

Thanks in advance for your cooperation.

Bonjour

I also had to move your post out of the English language forum board. You already know well enough that there is a Français board so there is no excuse for you posting in French to the English boards.

It's time for you to get your act together and start acting responsibly. If I see you doing this stuff again you're going to get a suspension.

A méditer !!

Bien prendre connaissance des Règles d'utilisation des Forums Arduino et du forum Francophone en particulier
https://forum.arduino.cc/index.php?topic=546956.0

Le message d'erreur est du au fait que le programme n'est pas compatible avec une carte Uno
Il est par contre compatible avec une carte Leonardo ou autre carte dont le microcontrolleur est un ATMega 32U4