From 27df642ee6f5e25c3139171466c8d88e34ff165e Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 18 Apr 2020 01:50:36 +0200 Subject: [PATCH] fix: wiringPi pin handling --- controller.ini | 16 ++++++++-------- main.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/controller.ini b/controller.ini index 1145dca..0f96ade 100644 --- a/controller.ini +++ b/controller.ini @@ -13,32 +13,32 @@ pin = 1 [relay-2] driver = gpio -pin = 11 +pin = 0 [relay-3] driver = gpio -pin = 13 +pin = 2 [relay-4] driver = gpio -pin = 15 +pin = 3 [relay-5] driver = gpio -pin = 8 +pin = 15 [relay-6] driver = gpio -pin = 10 +pin = 16 [relay-7] driver = gpio -pin = 12 +pin = 1 [relay-8] driver = gpio -pin = 16 +pin = 4 [relay-9] driver = gpio -pin = 18 +pin = 5 diff --git a/main.c b/main.c index b749ab3..db59fd0 100644 --- a/main.c +++ b/main.c @@ -107,7 +107,7 @@ main(int argc, const char** argv) /******************** SETUP WIRINGPI ********************/ - wiringPiSetupSys(); + wiringPiSetup(); piFaceSetup(200);