Well I have tried
while (phcontroller.Read() == true && method_state_6 == true)
This seems to work but in reverse but stops after a bit
then I tried to add the !
while (!phcontroller.Read() == true && method_state_6 == true)
This seems to work only one time.
It almost seems like its a hardware issue, but Ive checked that many times.
no error messages only a program not working right.
method_6 and 7 Wont loop at best tries once or twice.
Its a software issue I have run a test program
that works fine
public static void Main()
{
bool buttonState = false;
while (true)
{
buttonState = phcontroller.Read();
ph.Write(buttonState);
a.Write(buttonState);
b.Write(buttonState);
}
}
}
}