Edited by Crypter at Sat Feb 21, 2015 11:57 |
First of all, Linux is not real-time OS (like Arduino is, but that's not an OS - totally irrelevant at the moment), meaning you can't occupy the entire processing power it has to do your stuff. It has to think of the other processes. There's another workaround by using linux kernel modules that can stop the interrupts from the rest of the software, but that means that you just froze the OS to do your stuff, you froze the Ethernet connection, froze the ability to react on your command, froze your SSH session. Until that module releases your Banana PI - your Banana pi is under possession of that kernel module. You can use this but for less than 2 seconds, you get it why...
About connecting the Bpi to composite TV input, Lemaker is non-responsive and it doesn't do anything about it. I get only grayscale image and it's driver/hardware problem that I can't solve, or at least I don't have the knowledge. HDMI works OK.
I'm using WiringPi (they call it WiringBP, guess why...) for reading and writing to GPIOs. With 100% CPU load I'm able to check a single port at a rate of 1MHz (1 read = 10^-6 second) using C program, I'm about to try writing. I'll post my project in a few days here, it's way to unfinished to post it online yet
Hope this gets your stuff answered...
P.S: Ditch Lubuntu and get Bananian, it's more lightweight for this purpose, meaning faster.