From 774f99d2b5112cde9f206bdfac4367e0a9e91852 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Sep 2016 08:13:55 +0000 Subject: [PATCH] Added missing GPIO mappings for the NanoPi NEO (GPIOC0, GPIOC1, GPIOC3) --- lib/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gpio.c b/lib/gpio.c index fe74c19..3a360f4 100644 --- a/lib/gpio.c +++ b/lib/gpio.c @@ -11,8 +11,8 @@ int initPinGPIO(int board) switch(board) { case BOARD_NANOPI_M1: { int tempPinGPIO[41] = {-1, -1, -1, -1, -1, -1, -1, 203, 198, -1, 199, - 0, 6, 2, -1, 3, 200, -1, 201, -1, -1, - -1, 1, -1, -1, -1, -1, -1, -1, 20, -1, + 0, 6, 2, -1, 3, 200, -1, 201, 64, -1, + 65, 1, -1, 67, -1, -1, -1, -1, 20, -1, 21, 7, 8, -1, 16, 13, 9, 15, -1, 14, }; memcpy(pinGPIO, tempPinGPIO, sizeof(pinGPIO));