Ladder.h help (by Alex)
I made my ladder.h from an easy program, an on/off switch for one led.
inline extern BOOL Read_U_b_Xswitch(void)
{
return input_state(PIN_A0);
}
inline BOOL Read_U_b_Yled(void)
{
return input_state(PIN_A0);
}
inline void Write_U_b_Yled(BOOL v)
{
output_bit(PIN_B0, v);
}
it works fine, but i want to turn on/off a led with a timer called T1, so instead of "return input_state(PIN_A0);" what should i change?