Where is the best resource for writing python scripts on the portenta x8?
I want to for example write the pwm output. What do I import? what are library names? What is available....
I'm new to this so forgive me if I have missed obvious stuff
Do you actually have one of these?
You missed that the Introductory Tutorials section is for tutorials that you write to help others
Your topic has been moved to a more suitable location on the forum.
Why?
It will be easier to help you if you can follow along on your own device.
not yet, its been ordered. I'm really just looing for a link to something I can start reading. something that lists all the libraries that can be imported, functions available...
can you provide a link to the introductory tutorials sections? I'm looking for information about what libraries can be imported. For example what do I import to set a pwm output? What are the names of the pwm channels? Thanks
The online documentation doesn't appear to be available yet. Keep checking the Portenta H8 site. It comes preloaded with some flavor of Linux and a Python interpreter. You probably are already adept at Python and will just have to wait for the hardware interface libraries for The H8 to appear.
It's where you originally posted Introductory Tutorials - Arduino Forum
It contains tutorials written by Arduino users for Arduino users; not sure if you will find your information there. Maybe https://docs.arduino.cc/hardware/portenta-x8
Look like you use RPC (Remote Procedure Call) to call Arduino code from Python code.
Thank you.
Do you know of any resources for the NXP® i.MX 8M Mini side of things (Linux/python) where the pwm outputs are located. I'm looking to create a docker container that runs a python script to set the pwm output.
You won't be able to control the PWM directly via Python.
You'll need to bind the PWM commands to the RPC library with an Arduino sketch. Then call that RPC binding on the Python side.
The tutorial that johnwasser linked will demonstrate how to do that if you follow step-by-step.
If you don't have any sensors to use with the tutorial, I put together some scripts that just blinks the built-in LED.
Perfect! Thanks!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.