From 3c0c81df2eaa25c6fbf5d4294550c363c92db226 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Sat, 4 May 2024 20:00:58 +0200 Subject: [PATCH] isetpin.c --- setpin.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 setpin.c 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); + +}