Nintendo icon indicating copy to clipboard operation
Nintendo copied to clipboard

[Question] Digital inputs

Open ChrisCrashX opened this issue 6 months ago • 0 comments

I have been trying to make a bot to put basic inputs into a Gamecube, without for the need of a Gamecube controller. Basically I want to assign my Arduino a set of buttons to press and depress, but I just can't figure out how. I have tried a bunch of different things with no success. Is there any way you could lead me in the right direction?

Here is what I have so far: #include "Nintendo.h"

const byte pin = 8; CGamecubeConsole GamecubeConsole(pin); Gamecube_Data_t d = defaultGamecubeData;

void setup() {

}

void loop() { int A = 0; int B = 0; int X = 0; int Y = 0; int Start = 0; int Up = 0; int Down = 0; int Left = 0; int Right = 0; int Z = 0; int R = 0; int L = 0;

//reports data d.report.a = A; d.report.b = B; d.report.x = X; d.report.y = Y; d.report.z = Z; d.report.start = Start; d.report.r = R; d.report.l = L; d.report.dup = Up; d.report.dright = Right; d.report.ddown = Down; d.report.dleft = Left;

//sends the complied data to console when console polls for the input GamecubeConsole.write(d); }

ChrisCrashX avatar Aug 06 '24 02:08 ChrisCrashX