X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=BBB%20code%2FActuator_SetValue_real.c;h=fe5e3c56b0a2e47c5f7aa37a3a18a60d30fdf24a;hb=c160e49480a1b7771bb00df7404a417a4892d736;hp=e83020a8494ced0015f39e03eea799b050331cd7;hpb=14d73a4af10b05dd7d4d5e22f737a3684d0515cd;p=matches%2FMCTX3420.git diff --git a/BBB code/Actuator_SetValue_real.c b/BBB code/Actuator_SetValue_real.c index e83020a..fe5e3c5 100644 --- a/BBB code/Actuator_SetValue_real.c +++ b/BBB code/Actuator_SetValue_real.c @@ -1,13 +1,14 @@ #include "pwm.h" char pin_dir = "/sys/class/gpio/gpio"; //move these -int pwm_active = 0; /** Sets a GPIO pin to the desired value * @param value - the value (1 or 0) to write to the pin * @param pin_num - the number of the pin (refer to electronics team) */ +//also need to export and set pin direction + void SetPin(int value, int pin_num) { int pin; char buffer[10];