analogdevicesinc / pyadi-iio

Python interfaces for ADI hardware with IIO drivers (aka peyote)
https://analogdevicesinc.github.io/pyadi-iio
Other
134 stars 99 forks source link

AD7124 fix #549

Closed tagoylo closed 3 months ago

tagoylo commented 3 months ago

Description

This PR includes fix of the ad7124 class. When using .name, it cannot list the channels thus changing to .id in getting the channels. Also updated the example.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How has this been tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

Checklist: