[quote]Given your idle values, I would say that the joystick adds/removes 128 to each one to give its position. Could you give the values for each 8 positions, please ?
I would expect values like x from -80 to +176 and y from -77 to +179.[/quote]
See attachment.
They do not change.
Please note: I do not have a button handler. Only reads analog stick input.
If I find a way to get the values visible for a camera I will post a video to make things clear, I guess it’s very confusing.
public class Program
{
static int x;
static int y;
public static void Main()
{
FEZ_Shields.KeypadLCD.Initialize();
FEZ_Components.Wii.Nunchuk.Initialize();
Thread.Sleep(100);
FEZ_Components.Wii.Nunchuk.Reset();
while (true)
{
x = FEZ_Components.Wii.Nunchuk.AnalogStickX;
y = FEZ_Components.Wii.Nunchuk.AnalogStickY;
FEZ_Shields.KeypadLCD.SetCursor(0, 0);
FEZ_Shields.KeypadLCD.Print("X: " + x.ToString());
FEZ_Shields.KeypadLCD.SetCursor(1, 0);
FEZ_Shields.KeypadLCD.Print("Y: " + y.ToString());
Thread.Sleep(100);
}
}
}
Not pretty, but enough for testing I hope it’s just me doing something wrong…
Mine is off brand too. And also wireless. (might be a reason for failure?)
Tomorrow I will be able to lend a wired nunchuck, so tomorrow will be more testing with Wii nunchucks