fix: wiringPi pin handling
This commit is contained in:
parent
499b318018
commit
27df642ee6
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
2
main.c
2
main.c
|
@ -107,7 +107,7 @@ main(int argc, const char** argv)
|
|||
|
||||
/******************** SETUP WIRINGPI ********************/
|
||||
|
||||
wiringPiSetupSys();
|
||||
wiringPiSetup();
|
||||
piFaceSetup(200);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue