MRAA ADC
Hannibal
New Member Posts: 4 ✭
I get the following error when trying to use MRAA to read from ADC:
Traceback (most recent call last):
File "adc_test.py", line 7, in <module>
x = mraa.Aio(7)
File "/usr/lib/python2.7/dist-packages/mraa.py", line 1680, in __init__
this = _mraa.new_Aio(pin)
ValueError: Invalid AIO pin specified - do you have an ADC?
Please help.
Traceback (most recent call last):
File "adc_test.py", line 7, in <module>
x = mraa.Aio(7)
File "/usr/lib/python2.7/dist-packages/mraa.py", line 1680, in __init__
this = _mraa.new_Aio(pin)
ValueError: Invalid AIO pin specified - do you have an ADC?
Please help.
Comments
-
I had a quick look at the MRAA code just now, and I think this probably won't work. I had submitted a pull-request previously with a potential fix for this (https://github.com/intel-iot-devkit/mraa/pull/608), but it wasn't fully merged.
At a quick glance, I'd say he solution in that pull-request probably needs to be reworked to align with the one introduced here:
https://github.com/intel-iot-devkit/mraa/commit/bb3584fcdbbcbaf7122eb197dd8e30bba7ce2a4b#diff-ca11d156faac94eb193f7835dee4e1bb -
Thanks for the reply
Categories
- All Categories
- 63 Announcements & News
- 58 Product News - New Product/Product Change Notice/ End-of-life
- 99 Welcome Developers!
- 46 Unboxing & Project Sharing
- 114 Tech Updates
- 3.4K UP Products
- 14 UP 7000
- 1 UP Squared i12
- 12 UP Xtreme i12
- 13 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 23 UP Squared V2
- 63 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 57 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral