controller-legacy/drivers/gpio.c

16 lines
300 B
C
Raw Normal View History

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_gpio_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-18 11:28:23 +00:00
pinMode(pin, OUTPUT);
2020-04-16 23:38:25 +00:00
digitalWrite(pin, value);
2020-04-13 22:50:55 +00:00
}