does anyone have example code for there spike relay that they are willing to share?
Please specify the programming system you are using:
- MPLAB
- EasyC Pro
- RobotC
Three systems, three different answers.
MPLAB
//to turn on
relay#_fwd = 1;
//to turn off
relay#_fwd = 0;
Don’t forget to set:
relay#_rev = 0;