Bonjour à tous, je suis novice dans le domaine de l'électronique, et j'essaie de résoudre un petit problème.
J'ai du remplacer ma carte arduino micro de mon shifter car le port micro usb c'était fait la mal.
Du coup, impossible de récupérer la programmation de l'ancienne carte pour la réintroduire dans la nouvelle.
Je me suis donc mis à lire plusieurs discussion sur le forum, notamment ceux de Par Matthew Heironimus.
Mais imposible pour moi de comprendre ce que je fait
j'ai codé dans arduino ceci, de Brendan Beavis
saisissez ou collez du code ici
#include <UnoJoy_h>
// Declare our digital input pins on the board
int upPin = 8;
int downPin = 16;
// This is the value of the input from the switches
int Up = 0;
int Down = 0;
void begin() {
// Setup our pins
pinMode(upPin, INPUT_PULLUP);
pinMode(downPin, INPUT_PULLUP);
// Setup the UnoJoy library
setupUnoJoy();
}
void redo() {
// Read our values from the switches to the digital input pins
Up = digitalRead(upPin);
Down = digitalRead(downPin);
// Create a data structure to hold the joystick state
dataForController_t joyState = getBlankDataForController();
// Write the value of the input to the joystick buttons
joyState.triangleOn = !Up; // Use one of the available buttons in the structure
joyState.circleOn = !Down; // Another available button
// Send the state to UnoJoy
setControllerData(joyState);
// Wait a moment before rechecking the status of the inputs
delay(50);
}
et voici le message d'erreur :
C:\Users\jerom\OneDrive\Documents\Arduino\UnoJoy_h_copy_20250821152344\UnoJoy_h_copy_20250821152344.ino:1:10: fatal error: UnoJoy_h: No such file or directory
#include <UnoJoy_h>
^~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: UnoJoy_h: No such file or directory
quelqu'un pourrai-til me venir en aide?


