Just a note : for testing purposes, I’ve made the same loops tests with a “realease” build and the average gain was around 50%, instead of 43%, with almost double speed of the same code. Some easy points here Obvious, indeed, but not to forget…
Release build :
First loop : 00:00:20.2323645
Second loop : 00:00:10.2529523
Mean : 49.84%
Debug build :
First loop : 00:00:37.0361316
Second loop : 00:00:21.1337541
Mean : 43.20%
Also, in debug mode, adding a breakpoint somewhere after the tests/displays does increase a lot the time needed for each loop :o See picture, it’s set a the very end of the main program…
Debug build with Breakpoint after all tests :
First loop : 00:01:39.9732837
Second loop : 00:00:57.1814141
Mean : 42.94%
I accidentally changed the title on your Fezzer page. This led me to discover a bug and fix it. Please feel free to change it back. Editing is now back online.
I like Panda a lot. The only area where it is way behind of much less powerful Arduino is speed of GPIO. To fill that LCD with one color takes ~2-4 seconds on Arduino. On Panda it takes 1 and a half minute. Optimized (close to the native speed) OutputPort and/or ParallelPort would make it the absolute winner!
No doubt here. I am just saying that I would like D0…D7 to be from the same port. That way I don’t have to do bit shuffling and would’ve used one Register for that port instead of two. Right now D0…D7 are from two different ports.
They can be from 8 ports, the processor is fast enough to run it faster than Arduino but yes it would be nice if they are on the same port so it is even faster.
I am not sure how will this be done but let us look into this further.
Looks like I got the last one from them :(.
It took about two weeks to get it from them (I am in Virginia). If you need it to add that ParallelPort we are talking about I can send you mine. Just send it back after you get yours or done with it.
I had to give my display to somebody to try some code on it. So I didn’t have a chance to play with it. But I just got it back this morning so I will add touch functionality tonight. I will update this thread after it is done.