adafruit / seesaw

I2C friend to expand capabilities of other chips.
Other
76 stars 34 forks source link

PulseIn Support #23

Open wallarug opened 5 years ago

wallarug commented 5 years ago

As mentioned on Adafruit_CircuitPython_Seesaw GitHub, but more relevant here as it needs to be implemented in the firmware.

SeeSaw does not have a mechanism for reading pulses from the ADC pins (AFAIK). This functionality is already built into CircuitPython, however, it doesn't understand how to communicate with a SeeSaw device for achieving this goal.

I want to be able to read the signal coming from my RC Controller with is sending a series of pulses, rather than analog input.

When attempting to do a pulseio read, it says "pulse io is not supported on this device or does not exist" (running on a Raspberry Pi). There is nothing in the SeeSaw CircuitPython library either that is able to achieve this functionality.

My recommendation is that it be implemented directly into SeeSaw and just send back the values like it does for Encoders and ADC raw_values.

I'm not sure how much of the existing C code for Pulseio.PulseIn can be transferable to run within SeeSaw. @tannewt @dhalbert do you have any ideas?

Happy to look into this.

Documentation for PulseIn

ladyada commented 5 years ago

hiya, there's nobody currently maintaining on or working on seesaw, if you want some more capabilities in seesaw you will have to implement them on your own - we have lots of code you can use, but we wont be able to dedicate any time soon to assisting you.

chatelao commented 3 years ago

Same here: The signal I/O connectors would be perfect for reading RC-signal to add RC support to my robot.