Python PWM for Application

Hi there,

I have got the pwm working from the device but I would like to know the python code to access the pwm and adc from within my python application? My hardware is a Veridin IMX8M+ 4GB SoM and Mallow Carrier board.

KR,

Ben

Greetings @btj2,

We unfortunately do not have any code examples for PWM & ADC with Python. Though I’m sure there are many code examples you can find online. Also if you look at our code examples in C for PWM & ADC: GitHub - toradex/torizon-samples: All sample code related to TorizonCore project.

They’re just simply reading and writing files in /sys that correspond to the interface. Something that can be easily recreated in Python. Though I’m sure there are more sophisticated libraries in Python for this if you search.

Best Regards,
Jeremias