diff --git a/setpin.c b/setpin.c new file mode 100644 index 0000000..d366cfa --- /dev/null +++ b/setpin.c @@ -0,0 +1,11 @@ + +#include "mctools.h" + +void setpin(uint8_t port, uint8_t pin, uint8_t val) +{ + if (val) + setpin_hi(port,pin); + else + setpin_lo(port,pin); + +}