From 97e00d92988d66012c3a092f4242585ffe1b19d6 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Fri, 21 Nov 2014 11:58:08 +0000 Subject: [PATCH] docs: explain aio numbering scheme Signed-off-by: Brendan Le Foll --- docs/edison.md | 2 ++ docs/galileorevd.md | 2 ++ docs/galileorevh.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/edison.md b/docs/edison.md index d55d5dc..8114afb 100644 --- a/docs/edison.md +++ b/docs/edison.md @@ -22,6 +22,8 @@ in libmraa: - SPI exposed is also used for the ADC. Try not to use your own CS. - ADC kernel module will return 12bit number but the ADC itself only has an accuracy of 10bits. This ADC is only included on the arduino board. +- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything + else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio Intel breakout board -------------------- diff --git a/docs/galileorevd.md b/docs/galileorevd.md index 859e476..382ee57 100644 --- a/docs/galileorevd.md +++ b/docs/galileorevd.md @@ -9,3 +9,5 @@ The rev D board has the following limitations in libmraa: - gpio register access via /dev/uio is limited to pin2 and 3 - gpio interupts will only work on GPIO_EDGE_BOTH - adc kernel module will return 12bit number. MRAA defaults shift this to 10bits +- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything + else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio diff --git a/docs/galileorevh.md b/docs/galileorevh.md index 0f896bb..464c9d4 100644 --- a/docs/galileorevh.md +++ b/docs/galileorevh.md @@ -15,3 +15,5 @@ The Gen 2 board has the following limitations in libmraa: all pwm channels - adc kernel module will return 12bit number but the ADC itself only has an accuracy of 10bits. +- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything + else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio -- 2.7.4