fix: wiringPi pin handling

This commit is contained in:
Tobias Reisinger 2020-04-18 01:50:36 +02:00
parent 499b318018
commit 27df642ee6
2 changed files with 9 additions and 9 deletions

View file

@ -13,32 +13,32 @@ pin = 1
[relay-2] [relay-2]
driver = gpio driver = gpio
pin = 11 pin = 0
[relay-3] [relay-3]
driver = gpio driver = gpio
pin = 13 pin = 2
[relay-4] [relay-4]
driver = gpio driver = gpio
pin = 15 pin = 3
[relay-5] [relay-5]
driver = gpio driver = gpio
pin = 8 pin = 15
[relay-6] [relay-6]
driver = gpio driver = gpio
pin = 10 pin = 16
[relay-7] [relay-7]
driver = gpio driver = gpio
pin = 12 pin = 1
[relay-8] [relay-8]
driver = gpio driver = gpio
pin = 16 pin = 4
[relay-9] [relay-9]
driver = gpio driver = gpio
pin = 18 pin = 5

2
main.c
View file

@ -107,7 +107,7 @@ main(int argc, const char** argv)
/******************** SETUP WIRINGPI ********************/ /******************** SETUP WIRINGPI ********************/
wiringPiSetupSys(); wiringPiSetup();
piFaceSetup(200); piFaceSetup(200);