Quote:
Originally Posted by Cheeset2
Code:
Relay Tom = new Relay(PORT YOU PLUGGED THE PWM WIRE INTO ON DSC);
Can you please explain this part of your code in more detail?
Specifically the PORT YOU PLUGGED THE PWM WIRE INTO ON DSC part.
|
There are 8 relay ports on the sidecar. They are numbered from 1-8. The number corresponding to the port you plugged the PWM cable from the relay into the sidecar replaces the "PORT YOU PLUGGED THE PWM WIRE INTO ON DSC" in the code.
The rest of the code just initializes the relay using the port. Everything is an object.