Permalink
Browse files

Swapped pin assignments for data 1 and data 2 lines

  • Loading branch information...
1 parent e266d77 commit 71a69aa881cc6bdba9068caa947ea3dbf89f4594 petrockblog committed Feb 20, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main.c
View
8 src/main.c
@@ -322,13 +322,13 @@ int main(int argc, char *argv[]) {
{
pads.clock = RPI_GPIO_P1_19;
pads.strobe = RPI_GPIO_P1_23;
- pads.data1 = RPI_GPIO_P1_07;
- pads.data2 = RPI_GPIO_P1_05;
+ pads.data1 = RPI_GPIO_P1_05;
+ pads.data2 = RPI_GPIO_P1_07;
} else {
pads.clock = RPI_V2_GPIO_P1_19;
pads.strobe = RPI_V2_GPIO_P1_23;
- pads.data1 = RPI_V2_GPIO_P1_07;
- pads.data2 = RPI_V2_GPIO_P1_05;
+ pads.data1 = RPI_V2_GPIO_P1_05;
+ pads.data2 = RPI_V2_GPIO_P1_07;
}
/* set GPIO pins as input or output pins */

0 comments on commit 71a69aa

Please sign in to comment.