Hi, i need some help converting a old gameport joy stick... I have this simple code that
just outputs the X and Y axis of the joystick by reading analog input:
#define SW 4
void setup() {
Serial.begin(9600);
pinMode(SW,INPUT);
digitalWrite(SW,HIGH);
}
void loop() {
Serial.print("VRX_value=");
int X_value=analogRead(A3);
Serial.print(X_value);
Serial.print("\t");
Serial.print("VRY_value=");
int Y_value=analogRead(A4);
Serial.print(Y_value);
Serial.print("\t");
Serial.print("Switch_value=");
int switch_value=digitalRead(SW);
Serial.print(switch_value);
Serial.println("\t");
delay(1000);
}
My only issue that i dont have a leonardo which lets you act as a keyboard or mouse,etc
only the arduino uno, and also the code cant do that.. i also heard some arduino unos have the same chip as the leonardo but i think i have the atmega something something.. Any posibility i can make a virtural joystick using some sort of software..
if possible i need windows and linux solutions...
Cheers