Logitech G940 Flight Simulator Pedals from crappy connector to USB

Hi hope this is in the right place! Im very new to arduino and only just made an account for this. I have a non brand 23u4 and have soldered three pots to it with ground and +5v and the middle pin going to the input of the arduino B0 B1 B2 (rudder, right break, left break.

so now i have to program the thing and I've seen a lot of people doing this online but don't understand enough to program it myself could some one give guidance to how i should program the thing!

thanks

When is our assignment due?

Obviously this week :o

well i guess the first thing would be to get the 32u4 to work with arduino. is there anything special i have to do to get it to work as its a non branded arduino?

I've found this which is what i want i think??

so all i needed to get the arduino teensy 2.0 going was to install the software and then flash as raw HID. now i just need the code for the controller to work.

can anyone tell me how to do the rest i deleted buttonpush code.

// Program used to test the USB Joystick object on the
// Arduino Leonardo or Arduino Micro.
//
// Matthew Heironimus
// 2015-03-28
// Updated on 2015-11-18 to use the new Joystick library written for version 1.6.6.
//------------------------------------------------------------

#include "Joystick.h"

// Set to true to test "Auto Send" mode or false to test "Manual Send" mode.
//const bool testAutoSendMode = true;
const bool testAutoSendMode = false;

const unsigned long gcCycleDelta = 1000;
const unsigned long gcAnalogDelta = 25;
const unsigned long gcButtonDelta = 500;
unsigned long gNextTime = 0;
unsigned int gCurrentStep = 0;

void testXYAxis(unsigned int currentStep)
{
if (currentStep < 256)
{
Joystick.setXAxis(currentStep - 127);
Joystick.setYAxis(-127);
}
else if (currentStep < 512)
{
Joystick.setYAxis(currentStep - 256 - 127);
}
else if (currentStep < 768)
{
Joystick.setXAxis(128 - (currentStep - 512));
}
else if (currentStep < 1024)
{
Joystick.setYAxis(128 - (currentStep - 768));
}
else if (currentStep < 1024 + 128)
{
Joystick.setXAxis(currentStep - 1024 - 127);
Joystick.setYAxis(currentStep - 1024 - 127);
}
}

void testZAxis(unsigned int currentStep)
{
if (currentStep < 128)
{
Joystick.setZAxis(-currentStep);
}
else if (currentStep < 256 + 128)
{
Joystick.setZAxis(currentStep - 128 - 127);
}
else if (currentStep < 256 + 128 + 127)
{
Joystick.setZAxis(127 - (currentStep - 383));
}
}

void testThrottleRudder(unsigned int value)
{
Joystick.setThrottle(value);
Joystick.setRudder(255 - value);
}

void testXYAxisRotation(unsigned int degree)
{
Joystick.setXAxisRotation(degree);
Joystick.setYAxisRotation(360 - degree);
}

void setup() {
if (testAutoSendMode)
{
Joystick.begin();
}
else
{
Joystick.begin(false);
}

pinMode(A0, INPUT_PULLUP);
pinMode(13, OUTPUT);
}

void loop() {

// System Disabled
if (digitalRead(A0) != 0)
{
digitalWrite(13, 0);
return;
}

// Turn indicator light on.
digitalWrite(11, 1);

if (millis() >= gNextTime)
{

if (gCurrentStep < 33)
{
gNextTime = millis() + gcButtonDelta;
testSingleButtonPush(gCurrentStep);
}
else if (gCurrentStep < 37)
{
gNextTime = millis() + gcButtonDelta;
testMultiButtonPush(gCurrentStep - 33);
}
else if (gCurrentStep < (37 + 256))
{
gNextTime = millis() + gcAnalogDelta;
testThrottleRudder(gCurrentStep - 37);
}
else if (gCurrentStep < (37 + 256 + 1024 + 128))
{
gNextTime = millis() + gcAnalogDelta;
testXYAxis(gCurrentStep - (37 + 256));
}
else if (gCurrentStep < (37 + 256 + 1024 + 128 + 510))
{
gNextTime = millis() + gcAnalogDelta;
testZAxis(gCurrentStep - (37 + 256 + 1024 + 128));
}
else if (gCurrentStep < (37 + 256 + 1024 + 128 + 510 + 28))
{
gNextTime = millis() + gcButtonDelta;
testHatSwitch(gCurrentStep - (37 + 256 + 1024 + 128 + 510));
}
else if (gCurrentStep < (37 + 256 + 1024 + 128 + 510 + 28 + 360))
{
gNextTime = millis() + gcAnalogDelta;
testXYAxisRotation(gCurrentStep - (37 + 256 + 1024 + 128 + 510 + 28));
}

if (testAutoSendMode == false)
{
Joystick.sendState();
}

gCurrentStep++;
if (gCurrentStep == (37 + 256 + 1024 + 128 + 510 + 28 + 360))
{
gNextTime = millis() + gcCycleDelta;
gCurrentStep = 0;
}
}
}

AWOL:
When is our assignment due?