I have written a python program that writes to a LCD module via the gpio port. The program appears to run quite slowly, noticeably slower than equivalent C code, but I expect you get that. I notice in Geany that you can create a compiled version of the program with the filename ending in a .pyc extention. There appears to be no advantage in running this file speedwise - its no faster, and also I still need to use the same command structure to run it, ie
- Code: Select all
pi@raspberry # sudo python gpio.pyc
In fact it has less options to run because I can
- Code: Select all
pi@raspberry # sudo ./gpio.py
but I cannot
- Code: Select all
pi@raspberry # sudo ./gpio.pyc
So either I,m missing something, or 'thats what you get!'.
Texy