Hi All, >> If this is the case, I suggest we name my lib glcd_ks0108 and I also >> create an glcd_common lib for generic functions. If not, I intend to >> put it all in one file, lcd_ks0108. > > This is very subtle... But isn't ks0108 a LCD ? (so, why just not using the > "lcd_" prefix ?). that's okay
> About a potential glcd_common lib, it can be postponed to > when there'll be another graphic LCD lib, so I'd say that's transparent > (since it will be included in glcd_ks0108, right ?). > > If I understand correctly, if there's a lcd_common lib (see current topic > with Richard), and if there's no similarity at all between a graphic LCD and > a "classic" LCD, you can't put common stuff for your graphic LCD in > lcd_common, because there would be inconsistencies, and worst, collisions... > > I'm thinking loud, no definitive opinion. I'd say to name it "glcd_...", but > that's just my intuition :) > You are right seb: it must be glcd_common and is transparent for the user. I made some progress on the lib and it can now be used like a 21*8 text display. In addition to this, you can draw lines & boxes while circles (and maybe graphs) are planned. And this makes the naming discussion relevant at function-level. Currently: - all functions that are compatible with a char based lcd have the same name (lcd_init, lcd'put etc). - all graphic-specific functions have glcd prefix - all device-specific functions have ks0108 prefex. This seems logical, but the consequence is that it might be clear for a user when to use the glcd or lcd prefix. So maybe it is better to always use the glcd prefix and provide stubs from lcd prefix for compatibility? Or also use the lcd prefix for graph functions like line and box? Please let me know your opinion, since a well-designed interface is paramount! Joep. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
