Source code to drive the Raspberry Pi 8 input/8 mains relay adaptor board from a Raspberry Pi using the WiringPi library.
Add this product to your shopping basket when purchasing our Raspberry Pi 8 input/8 mains relay adaptor board. The source code will be available to download from My Account on completion of your order.
Provided within this downloadable product (in .zip format) are two C++ source code files that allow the user to exercise the functions of the 8 input/8 mains relay adapter board from a connected Raspberry Pi single board computer. The program can be used as a starting point for your own projects.
Zip file contents:
- input_test_wiringpi.cpp – Example for reading state of input port pins
- relay_test_wiringpi.cpp – Example for driving the relays on and off in sequence