Richer ADC class #16974
Replies: 2 comments 1 reply
-
Putting everything the ADC can do into a class would fill the entire Flash-memory. |
Beta Was this translation helpful? Give feedback.
-
There is an ADC timed method in the PyBoard port, and I made a PR with ADC-timed/DAC-timed group of methods for the SAMD port. Both implementations cover a few of the things you mentioned. The PR for SAMD stalls. Damien wants to define a suitable API for this class which then can be implemented for all ports. b.t.w.: The additional code size for the SAMD port is about 2K. That should be pretty acceptable for the Pico port, which is not short of flash. |
Beta Was this translation helpful? Give feedback.
-
Are there any plans for, or work in progress on, a more feature-rich ADC class implementation. Presently, there is only one method and it only works for direct interaction with the device. Other features would be very useful, I think, such as:
At present, the only way I've found to interface these is using a ctypes implementation or using wrappers around mem32 calls.
Beta Was this translation helpful? Give feedback.
All reactions