Python interpreters are available on many operating systems including Linux, Windows and Mac OS. This guide provides you with step-by-step instructions to start writing Python scripts for the Embedded Artists iMX based COM boards. It is assumed that the reader is familiar with Python as this is no course but rather a getting started guide. ![]() The instructions have been tested on PCs running both Windows and Ubuntu. ![]() As Eclipse is a multi-platform IDE the experience is very similar in both operating systems. Quick Start Īll pre-built file system images for the Embedded Artists iMX based COM boards come with a python interpreter already installed. The very first example in most programming languages is a program that writes Hello World on the terminal. Start by booting into Linux and then open a new file with an editor:įound framebuffers: īlank: /sys/devices/soc0/fb.20/graphics/fb0/blankīlank: /sys/devices/soc0/fb.20/graphics/fb1/blank In python this can be done with very little code. Waiting 5 seconds before backlight tests. Īll pre-built file system images for the Embedded Artists iMX based COM boards come with a Python interpreter already installed. Python-feedparser python-pyalsaaudio python-tornado Python-epydoc python-psutil python-sqlalchemy Python-enum34 python-prettytable python-snakefood Python-django-south python-pexpect python-smbus Python-distribute python-numpy python-slip-dbus Python-decorator python-numeric python-six Python-dbusmock python-nose python-simplejson Python-dateutil python-mock python-requests Python-cmd2 python-matplotlib python-pyyaml Python-cloudeebus python-markupsafe python-pyusb Python-certifi python-lxml python-pyserial Python-backports-ssl python-ldap python-pyrex Python-autobahn python-jinja2 python-pyqt Python-async python-imaging python-pyparted Adding Packages Using Yocto Īt the time this document was written the following packages could be added using Yocto:Īdditional packages can be added either using Yocto when setting up the file system or in runtime using the pip package manager. Python-gitdb python-pygtk python-zopeinterface Python-git python-pygobject python-webdav Python-gevent python-pyflakes python-vobject Python-gdata python-pycurl python-urllib3 Python-futures python-pycparser python-ujson Python-flufl-enum python-pycairo python-twisted The instructions on how to find available packages as well as how to include them in the image build is explained in the Yocto guide. Pip is a package management system used to install software packages written in Python. Pip can be used to install Python extensions from an online repository containing more than 80000 packages. With the correct extension installed almost anything can be done in Python. Pip can be installed by including the python-pip package when building the file system as explained in the previous section. It has already been installed in the prebuilt images from Embedded Artists. ![]() ![]() Pip handles packages from which claims to have more than 80000 packages. Note that a lot of pip packages have dependencies and if not met the package cannot be installed. A careful inspection of the output from pip will give a clue to what is missing. This section describes how to setup the Eclipse IDE with python support and the extra bits needed to remotely debug code running on the Embedded Artists iMX based COM boards.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |