Python Programming Language
Python on the Omega
Python is ideal for scripting and quick hardware experiments on the Omega2.
Install the Runtime
Run through the Installing and Using Python guide to add both Python 2.7 and Python 3 to your device, manage packages with pip, and verify the interpreter.
Control Hardware
- Use the Onion GPIO Python Module for digital I/O.
- Communicate with I2C peripherals via the I2C Python Module.
- Drive SPI devices with the SPI Python Module.
- Manage PWM and relay expansions through their dedicated Python libraries linked in the Software Reference.
Automate Workflows
Combine Python scripts with the Automation guides to launch them on boot or schedule them with cron.