Programming the Omega
Kit Bishop last edited by Boken Lin
I really could do with help on how one goes about programming the Omega and what APIs there are for accessing the hardware (pins, i2c, etc).
Basic examples/tutorial would be of great help.
I succeeded in installing python-light. Is it possible to install pip or other 3rd party module? Will there be some python GPIO library?
Kit Bishop last edited by
Jun Cao, thanks for the info - I'll give python-light a try.
GPIO libraries and how to access I2C would also be useful to me
@Jun-Cao Yup, we will be writing a python wrapper to interact with all the hardware features.
@Kit-Bishop Currently you can use shell commands to interact with GPIO and I2C. Once these wrappers have been written we will be posting API documentations that shows you how to interact with the features programmatically.
T NT last edited by
That is awesome guys. I have just been using Adafruit's python libs for their displays which you control over i2c and very happy if you can provide similar functionality. Cool!
Hi @Boken-Lin could the team also have wrappers for python3 made available? ie. wrappers for the python3-light package?
@Maurice Yeah. There is a tool in python called 2to3. If we write python 2 code carefully, we can just write one set of code and have it "compiled" to python 3 without any issue.
Thanks @Boken-Lin looking forward to the wrappers when they're complete : )
Yesh Chandiramani last edited by
Hey for the people who are just getting into programming with the Onion Omega, I will be posting a video on the programming and building of a circuit that uses a button and an led to blink. It will be up on my channel by the end of this week latest. I will post more info when it is up. So relax and just wait
Any update on using python on the Omega?
Pedro Baco last edited by
Try this pythoni2c.py
Patrick Ryan last edited by
I too have put together a few videos on python programming for the Omega just incase you find them helpful.
I also wrote a simple, simple wrapper for the gpio which was inspired by Omega user 'Dan L'.