Comments (5)
Yes, I'm interested in ADC inputs too. e.g. to read distance sensors (optical, ultrasonic, etc).
What's the best way to read ADC inputs to use in conjunction with rcpy
. Ideally rcpy
would implement an ADC module, but since it's not present is there another solution in the interim?
from rcpy.
from rcpy.
The C libraries seem to be very comprehensive, and looking at the Python wrapper code it seems that it shouldn't be too difficult to add for the ADC module (and other missing modules too).
So I've taken the plunge (started a quick hacking investigation) to see if I can create the Python bindings to the low-level C functions.
from rcpy.
I've made some progress and my limited tests seem to suggest that it might work :)
You can find my fork/branch here:
https://github.com/BrendanSimon/rcpy/tree/bjs/adc_bindings
I've submitted a pull request here:
from rcpy.
Thank you Brendan! I already merged with master.
from rcpy.
Related Issues (14)
- error: βrc_imu_read_mutexβ undeclared HOT 2
- rcpy_blink.py not working on 2018-5-20 image HOT 1
- Problem with rcpy HOT 1
- "linux/gpio.h header not found" while installing libgpiod HOT 1
- Servos require sudo usage? HOT 1
- Segmentation fault when making rcpy.motor calls HOT 11
- failure to initialize PWM subsystem 1 HOT 1
- problem while 'libgpiod' make - on beaglebone-blue HOT 1
- error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 HOT 3
- Usage of BeagleBone PRU HOT 1
- Feature Request: Support for barometer HOT 1
- Documentation for adc functionality HOT 1
- rcpy fails to install HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcpy.