comparison include/matrix_gpio_mapping.h @ 17:85e8b08a7471 matrix_gpio

- added example project matrix_gpio_demo - added defines for GPIO_HIGH and GPIO_LOW
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 27 Apr 2015 18:27:04 +0100
parents 670be80463a3
children
comparison
equal deleted inserted replaced
16:670be80463a3 17:85e8b08a7471
6 //GPIO_INPUT and GPIO_OUTPUT values when calling the setDigitalDirection() macro. 6 //GPIO_INPUT and GPIO_OUTPUT values when calling the setDigitalDirection() macro.
7 //TODO: these are inverted with respect to INPUT_PIN and OUTPUT_PIN defined in GPIOcontrol.h, 7 //TODO: these are inverted with respect to INPUT_PIN and OUTPUT_PIN defined in GPIOcontrol.h,
8 //which might lead to unexpected results in case someone uses those in place of these or viceversa 8 //which might lead to unexpected results in case someone uses those in place of these or viceversa
9 #define GPIO_INPUT 1 9 #define GPIO_INPUT 1
10 #define GPIO_OUTPUT 0 10 #define GPIO_OUTPUT 0
11 11 #define GPIO_HIGH 1
12 #define GPIO_LOW 0
12 //mapping GPIO numbers to header pins 13 //mapping GPIO numbers to header pins
13 //if you want to use different pins/ordering, define here new pins. The ordering here is NOT binding 14 //if you want to use different pins/ordering, define here new pins. The ordering here is NOT binding
14 #define P8_07_GPIO_NO 66 15 #define P8_07_GPIO_NO 66
15 #define P8_08_GPIO_NO 67 16 #define P8_08_GPIO_NO 67
16 #define P8_09_GPIO_NO 69 17 #define P8_09_GPIO_NO 69