Thanks Mat I understand.
All the naming,finding around and understanding
of how things are knitted together is the reason why I want to wait
with poking around
in existing files in svn ( I have of course fetched the files you
mentioned)

But I've thinking of adding my current working files ( the funny named
ones )
I would be easier than uploading to my own domain

It perfectly makes sense to have a cache in a separate lib but is it
possible
to call e.g glcd_write_data() on the device when the cache is included
before the device ?
Do I miss something?

I will attempt to be more aware of how to name....
If not right scold me ..o)

On 17 Dec., 19:47, mattschinkel <[email protected]> wrote:
> I think the cache thing may be useful for some, although not useful
> for myself. You have to find a way to make cache optional, and you
> also need to choose correct naming. So far you don't see how important
> naming of files and procedures is.
>
> If possible, there should be a glcd_cache library that is not at all
> dependent on your glcd specific library. If someone has a different
> type of glcd, they should also be able to use your cache. I should be
> able to test it out with my lib/sample.
>
> A good name for procedures would be "glcd_cache_" Your procedure
> glcd_update should be renamed to glcd_cache_to_glcd, and also make
> clear_cache_clear.
>
> If you need modifications to any jallib files, we can discuss. It is
> not easy to make a good library that everyone can use and be happy
> with.
>
> Matt.
>
> On Dec 17, 9:27 am, pdhaene <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi Mat
>
> > I have tried to cook up a solution for Nokia type displays
> > the 3 updated files end with 101217
>
> > The solution uses a cache when the user chooses by defining
> > const GLCD_USE_CACHE
>
> > I have chosen to place clear_cache & glcd_update in the graphics lib.
> > I did that to keep the Nokia lib free from  'pollution'.
> > In this way it has a clean interface with only the glcd_write_pixel
> > proc
>
> > Hope it can be useful
>
> > Paul
>
> > On 17 Dec., 00:08, mattschinkel <[email protected]> wrote:
>
> > > All lcd's support writing pixels. I believe your write_pixel procedure
> > > is currently named plot_pixel, but it should be renamed. This
> > > procedure is to set one pixel on the screen.
>
> > > Some don't support reading pixels, and so there should be no procedure
> > > defined which is ok. A library can use "if defined(lcd_write_pixel)
> > > then"
>
> > > Matt.
>
> > > On Dec 16, 3:02 pm, pdhaene <[email protected]> wrote:
>
> > > > 3310 cannot be read from the display which gives a problem for
> > > > writing per pixel
>
> > > > 1 should an empty procedure be in the file
> > > > or
> > > > 2 should it check for the presence of a cache.
> > > >   if so all writing has to be done in cache before updating
> > > > or
> > > > 3 should write_pixel() be left out for a lcd not supporting pixel
> > > > writing
>
> > > > If 1 would it make sense to have a procedure e.g. use_cache( yesno )
> > > > to create and initialize such

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to