
which part of the wii U did you keep ?
Evilz wrote:Very very nice build !![]()
which part of the wii U did you keep ?
As I posted in spec details battery lasts about 3 hours when playing N64.grenade44 wrote:Very nice build, how long does the battery last?
Sorry no idea ow I missed that. I really want to attempt this build but not sure if I can currently afford it.banjokazooie wrote:As I posted in spec details battery lasts about 3 hours when playing N64.grenade44 wrote:Very nice build, how long does the battery last?
It's original.Daniel_N wrote:The white parts ibside are 3D printed?
Or original?
Code: Select all
const int numButtons = 19; //digital 0-15, 18, 19, 22, 23
void setup() {
Joystick.useManualSend(true);
pinMode(0, INPUT_PULLUP);
pinMode(1, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
pinMode(4, INPUT_PULLUP);
pinMode(5, INPUT_PULLUP);
pinMode(6, INPUT_PULLUP);
pinMode(7, INPUT_PULLUP);
pinMode(8, INPUT_PULLUP);
pinMode(9, INPUT_PULLUP);
pinMode(10, INPUT_PULLUP);
pinMode(12, INPUT_PULLUP);
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
pinMode(15, INPUT_PULLUP);
pinMode(18, INPUT_PULLUP);
pinMode(19, INPUT_PULLUP);
pinMode(22, INPUT_PULLUP);
pinMode(23, INPUT_PULLUP);
}
byte allButtons[numButtons];
byte indexButtonPins[numButtons] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 18, 19, 22, 23};
void loop() {
int rX = analogRead(4);
rX = (rX - 512) * 1.8 + 512;
if (rX > 1023)
rX=1023;
if (rX < 0)
rX = 0;
int rY = analogRead(5);
rY = (rY - 512) * 1.8 + 512;
if (rY > 1023)
rY=1023;
if (rY < 0)
rY = 0;
rY=abs(1023-rY);
int rL = analogRead(0);
rL = (rL - 512) * 1.8 + 512;
if (rL > 1023)
rL=1023;
if (rL < 0)
rL = 0;
int rR = analogRead(1);
rR = (rR - 512) * 1.8 + 512;
if (rR > 1023)
rR=1023;
if (rR < 0)
rR = 0;
//rR=abs(1023-rR);
Joystick.X(rX);
Joystick.Y(rY);
Joystick.sliderLeft(rL);
Joystick.sliderRight(rR);
for (int i = 0; i < numButtons; i++) {
if (digitalRead(indexButtonPins[i])) {
allButtons[i] = 0;
} else {
allButtons[i] = 1;
}
Joystick.button(i + 1, allButtons[i]);
}
Joystick.send_now();
delay(10);
}
Users browsing this forum: No registered users and 1 guest