From 71c04f77f333537a86b56bc59be7be28826bde55 Mon Sep 17 00:00:00 2001 From: Siegfried Kienzle Date: Mon, 27 Mar 2017 20:58:02 +0200 Subject: [PATCH] add reserve, voltage and inOrOut --- V1/switch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/V1/switch.c b/V1/switch.c index d97f47a..1965736 100644 --- a/V1/switch.c +++ b/V1/switch.c @@ -74,7 +74,12 @@ int voltage(char* gpioPort, char* volt) int main() { reserve(PIN06); - inOrOut(PIN06, OUT); + reserve(PIN01); + reserve(PIN11); voltage(PIN06, V0); + voltage(PIN01, V33); + inOrOut(PIN01, OUT); + inOrOut(PIN11, IN); + return 0; }