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