First off thanks so much to everyone that replied and helped and also thanks so much Squishy for helping me at all, I really appreciate it. <3
basically I used this line of code so far
relay2_fwd = 0;
relay2_rev = 0;
if(p4_sw_trig == 1)
{
relay2_fwd=1;
relay2_rev=0;
}
else if (p4_sw_trig == 0)
{
relay2_fwd=0;
relay2_rev=0;
}
like would that work.. or is that completely wrong?
sorry, I really don't have any experience in programming so my questions might seem pointless. So like I said, sorry ahead of time
