> Aha, I had the impression that it was a hardware feature! Yep, and I feel it is generic enouf to have in this lib. Other large color glcd's use it.
> The KS0108 always draws 8 pixels at a time (in a vertical row). This > allows a more efficient procedure than writing pixel-by-pixel like in > the clear_screen in common.jal. So this is why you should make your own clear_screen within the glcd library and name it glcd_clear_screen() This will disable clear_screen in glcd_common. You should be able to draw any size text, however if you are not on the 8 pixel boundary, you will need to read, modify then write the pixels. Still should be efficient enouf, but a note in the lib can let the user know what size fonts are best. Sounds like you will need a custom procedure for drawing text. Hopefully someone can implement this for other font sizes, but it would take some work. > I tend to agree that it is not very useful. So why not remove this > (requirement) from glcd_clear_screen() procedures. So let's do it. The user can position the cursor xy. > > You can see that I started writing in the top left, then write > > horizontally before going to the next line. > > 'Next line' is in terms of pixels, I suppose? Yep, you got it. > > A quick look at my sample 18f4620_glcd_touch_stm032qvt_003.jal shows > > that I only use glcd_ procs in the user code. Nothing starting with > > stm_ or alike. Is this what you like? > > Yes, but the question if I like it or not is not so important! > I think it is more important that Jallib provides a consistent interface > for similar devices. In this particular case: the Jallib glcd-libraries > should provide the user with a set of public constants, variables, > procedures and functions (all with a name starting with 'glcd_') which > are sufficient for most applications. Only in exceptional situations he > might be forced to use private procedures (names starting with _ks0108, > _stm, _nokia, etc.). I suppose I don't see your point, can you give an example of something you might change? I don't see any proc names that need to be changed in stm032qvt. As I said, the sample code uses the same naming and can be ported to another glcd. By the way, touch_ is for a touch sensor, not a glcd. Matt. -- 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.
