- // GPIO pin digital actuator
- {
- // Quick actuator function for testing pins
- // GPIOPin can be passed as argument, but is just defined here for testing purposes
- int GPIOPin = 13;
- // Modify this to only export on first run, only unexport on shutdown
- pinExport(setValue, GPIOString);
- pinDirection(GPIODirection, setValue);
- pinSet(value, GPIOValue, setValue);
- pinUnexport(setValue, GPIOString);
- }