MRAA ADC
Options
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
- 69 Product News - New Product/Product Change Notice/ End-of-life
- 96 Welcome Developers!
- 111 Unboxing & Project Sharing
- 22 Tech Updates
- 3.5K UP Products
- 23 UP 7000
- 1 UP Squared i12
- 11 UP Xtreme i12
- 15 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 23 UP Squared V2
- 65 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 57 UP Squared Pro
- 141 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 223 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 264 Starter Kits & Peripheral