Skip to content

Commit

Permalink
issue #4 gpio mapping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 9, 2017
1 parent e4ac602 commit 536fb5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wiringPi/wiringPi.c
Expand Up @@ -342,8 +342,8 @@ static int pinToGpio [64] ={
-1, -1, //18,19
-1, 20, //20,21
21, 8, //22,23
13, 9, //24,25
7, 16, //26,27
16, 9, //24,25
7, 13, //26,27
15, 14, //28,29
19, 18, //30,31

Expand All @@ -365,12 +365,12 @@ static int pinTobcm [64] ={
64, 66, //map to BCM GPIO10,11
7, 8, //map to BCM GPIO12,13
198, 199, //map to BCM GPIO14,15
16, 0, //map to BCM GPIO16,17
6, 13, //map to BCM GPIO18,19
13, 0, //map to BCM GPIO16,17
6, 16, //map to BCM GPIO18,19
15, 14, //map to BCM GPIO20,21
3, 200, //map to BCM GPIO22,23
201, 1, //map to BCM GPIO24,25
9, 13, //map to BCM GPIO26,27
9, 2, //map to BCM GPIO26,27

-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 29... 44
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //45... 60
Expand Down

0 comments on commit 536fb5d

Please sign in to comment.