| View previous topic :: View next topic |
| Author |
Message |
Francis
Joined: 25 Mar 2007 Posts: 276 Location: Devon
|
Posted: Fri Feb 19, 2010 9:50 pm Post subject: Graphics OLED writing... faster...maybe |
|
|
I've just about finished my OLED driver.
It's not comprehensive but does as much a I need.
It got me thinking about better ways to write to an OLED which is nice and fast.
So, THINKING OUT LOUD...
Assuming we have a 'big' enough PIC, wouldn't it be better to work on an array?
Then write the whole array to the OLED as bytes.
At the moment, with the current Modules, writing a pixel requires setpos, readbyte, bitwise op, writebyte.
And doing a line requires lots of those.
And doing a Fill requires even more.
It works flawlessly, but , alll in all quite slow.
Doing an array version means allows a much faster bitwise processing of an array element.
And writing bytes blindly to OLED controller is much faster than fiddling with reads / test / bitwise / writes.
I don't know if all OLEDs are the same in principle but if you write a byte to the SDD13005 controller it auto increments pointer, so NO manual SetPosition is needed - so saves even more time.
So, once the array is sorted in nice fast code, it can write the array as bytes with no read or Setpointer time overhead.
Simple tests of filling the screen using WriteByte is very fast.
It can easily do 250 complete screen writes in 1.5 seconds.
Does this have any mileage?
(Does it make any sense? ) |
|
| Back to top |
|
 |
ohararp

Joined: 03 Oct 2006 Posts: 147 Location: Dayton, OH USA
|
Posted: Sun Feb 21, 2010 5:21 pm Post subject: |
|
|
Francis, do you have any screen shots of the oled? Definitely interested. Seems like an array would be the best way to go to me. I use the 26K20's now with ~4K ram so a large array wouldn't be a problem. _________________ Thanks Ryan
$25 SMT Stencils!!!
www.ohararp.com/Stencils.html |
|
| Back to top |
|
 |
Francis
Joined: 25 Mar 2007 Posts: 276 Location: Devon
|
Posted: Sun Feb 21, 2010 5:58 pm Post subject: |
|
|
Hello Ryan. It's a Denstron DD12864YO.
I'm also using the 26K20.
I've just been modifying code to setpixels in an array and send the whole thing.
Result: MUCH faster. Fills are done in half a blink of the eye - in fact you don't actually see it filling - it just 'appears' as a solid.
Basically, I've changed the Driver 'SetPixel' and added a WritePage routine.
I have got a problem with Wrtiting Strings.
It'll only print the first character of a string onto the screen.
ie WriteAt/WriteStr(1,1,"HELLO") gives H on the display.
I'm using the simple pixel-by-pixel WriteChar routine to bitwise the Pixels in the array.
Squares, rectangles.lines, circles etc. are perfect, just writing chars to Screen is playing up.
The Font shape is fine, I juat lose the rest of my string.
I've declared the big array in the SDD1305 module.
(Yes, I am using a working copy of all Modules used :))
Not sure whether doing that has upset it.
I get the feeling that GLCD.WriteItem has got upset. I'm a bit stuck. |
|
| Back to top |
|
 |
rmteo
Joined: 29 Feb 2008 Posts: 215 Location: Colorado, USA
|
|
| Back to top |
|
 |
octal BETA Tester

Joined: 11 Jan 2007 Posts: 475 Location: Paris IDF
|
Posted: Sun Feb 21, 2010 7:49 pm Post subject: |
|
|
Hello rmteo,
did you already tested some of these OLED displays?
I need for an application a display that could be sun readable, I need a simple black on white one ... something that can be read under sun.
Did you tested these OLED under sunny weather? on the crystalfontz site they also propose some other graphic displays said to be sun-readable? does anyone tested them in real conditions?
Regards
octal _________________ http://www.pocketmt.com the GLCD Font Creator home  |
|
| Back to top |
|
 |
Francis
Joined: 25 Mar 2007 Posts: 276 Location: Devon
|
Posted: Sun Feb 21, 2010 7:55 pm Post subject: |
|
|
| If it's sunny tomorrow I'll take mine outside. |
|
| Back to top |
|
 |
nigle
Joined: 12 Aug 2008 Posts: 36 Location: West London
|
|
| Back to top |
|
 |
rmteo
Joined: 29 Feb 2008 Posts: 215 Location: Colorado, USA
|
Posted: Thu Feb 25, 2010 7:10 pm Post subject: |
|
|
| Francis, are you using the parallel or serial interface? |
|
| Back to top |
|
 |
Francis
Joined: 25 Mar 2007 Posts: 276 Location: Devon
|
Posted: Thu Feb 25, 2010 7:56 pm Post subject: |
|
|
| parallel |
|
| Back to top |
|
 |
rmteo
Joined: 29 Feb 2008 Posts: 215 Location: Colorado, USA
|
Posted: Wed Apr 14, 2010 4:44 pm Post subject: |
|
|
| octal wrote: | Hello rmteo,
I need for an application a display that could be sun readable, I need a simple black on white one ... something that can be read under sun.
Regards
octal |
What do you think of the graphic OLED on the EA Base Board?
Its response time seems much better than GLCD's that even using the SPI interface, it is faster. |
|
| Back to top |
|
 |
octal BETA Tester

Joined: 11 Jan 2007 Posts: 475 Location: Paris IDF
|
Posted: Thu Apr 15, 2010 8:29 am Post subject: |
|
|
Yes, it's really a nice OLED, but the pb, for my application, it's too small.
I need the display for a handheld device, that has to show orientation, inclinaison (using a mems sensor) and some other data (sun light intensity ...)
This is why I need it to be sun readable, it will be used mostly outdoor in sunny regions.
For dimensions I need it to be at least 2.5" to be really usable.
Regards _________________ http://www.pocketmt.com the GLCD Font Creator home  |
|
| Back to top |
|
 |
|