You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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;
It's probably a timing issue with how frequently you are writing inputs. You could try either doing multiple writes at the end instead of one call or adding a very slight delay after the write, probably less than a few milliseconds.
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);
}
The text was updated successfully, but these errors were encountered: