2020-04-13 22:50:55 +00:00
|
|
|
#include <wiringPi.h>
|
|
|
|
#include <piFace.h>
|
|
|
|
#include <wiring_debug.h>
|
|
|
|
|
|
|
|
#include <drivers.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
driver_piface_set(relay_t *relay, int value)
|
|
|
|
{
|
2020-04-16 19:19:56 +00:00
|
|
|
// disable "unused parameter" warning (happens when using wiring_debug)
|
|
|
|
(void)relay;
|
|
|
|
(void)value;
|
2020-04-13 22:50:55 +00:00
|
|
|
digitalWrite(DRIVER_PIFACE_GPIO_BASE + relay->number, value);
|
|
|
|
}
|