Help with the hacking of a wii guitar

Hey guys, I'm realy need a help here.
I'm trying to do an adapter for my wii guitar controller using an arduino nano with this adapter:

https://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/

The most common way to do this are solding the cables, but I dont want to because I don't have more money, so I need to put that code into someone other code that makes the wii guitar work to change the pwr and the gnd pins:

static void nunchuck_setpowerpins()
{
#define pwrpin PORTC3 //entrada A3
#define gndpin PORTC2 //entrada A2
DDRC |= _BV(pwrpin) | _BV(gndpin);
PORTC &=~ _BV(gndpin);
PORTC |=  _BV(pwrpin);
delay(100);  // wait for things to stabilize
}

or:

#define PWRPIN 17 // 3 + 14 == Analog Pin 3
#define GNDPIN 16 // 2 + 14 == Analog Pin 2
pinMode(PWRPIN, OUTPUT);
pinMode(GNDPIN, OUTPUT);
digitalWrite(PWRPIN, HIGH);
digitalWrite(GNDPIN, LOW);
delay(100);

the way that the wii extension work are very complex, there's a site that explain:

https://wiibrew.org/wiki/Wiimote/Extension_Controllers

In GuitHub I found some codes to edit, the closer that I found is that one but it are outdated so some changes are necessary:
https://github.com/hammaman/Arduino_Wii_Guitar_Hero

This one is good to but is also outdated and I cannot make it work:
https://github.com/jleyrer/WiiGuitarduino

I'm sorry if this are in the wrong topic but I should this one is the more related to my problem. And english aren't my native language so problably there's some mistakes.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.