Restructorizing
Re: Restructorizing
Alright, but I thought I might raise this idea so that during restructuring, our codebase is ready for such a thing in the future.
Re: Restructorizing
Yeah sure! I thank you for the idea, and of course it will be noted. I did ask for ideas
What would you suggest regarding to the glcd wrapper, what should be the next step beside the cursor fixing?
~ Tectu
What would you suggest regarding to the glcd wrapper, what should be the next step beside the cursor fixing?
~ Tectu
Re: Restructorizing
Do we still need a 'cursor'? I think any function that needed the position should have the cursor x/y as parameters.
Re: Restructorizing
Yeah, we do need a cursor to direct stream write operations. But only once per stream write.
Re: Restructorizing
doesn't write stream use currently defined window? either way, the settings should be passed to the write stream function as an extra parameter.
we also need to be careful that when code changes the active window on the LCD it is reset before other functions use it.
we also need to be careful that when code changes the active window on the LCD it is reset before other functions use it.
Re: Restructorizing
> The settings should be passed to the write stream function as an extra parameter.
It could be done that way.
However interestingly enough, the set window register setting does not affect the cursor in my S6D1121. It expects the cursor to be reset after the window address is configured, otherwise I get wrong output. I experienced this while implementing the fill area method.
It could be done that way.
However interestingly enough, the set window register setting does not affect the cursor in my S6D1121. It expects the cursor to be reset after the window address is configured, otherwise I get wrong output. I experienced this while implementing the fill area method.
Re: Restructorizing
Abhishek wrote:However interestingly enough, the set window register setting does not affect the cursor in my S6D1121. It expects the cursor to be reset after the window address is configured, otherwise I get wrong output. I experienced this while implementing the fill area method.
Then this should be done as part of the 'set window' function for that particular device driver.
Re: Restructorizing
Yeah Badger, it's done that way currently in my driver.
An implementation of the bitmap format would require me to position the cursor in the bottom left corner unlike the current top left corner. I wonder how will it be done if implemented that way.
Abhishek
An implementation of the bitmap format would require me to position the cursor in the bottom left corner unlike the current top left corner. I wonder how will it be done if implemented that way.
Abhishek
Re: Restructorizing
Okay, I did remove lcdSetCursor() since nothing inside the glcd.c uses that function. It's already the case that every lld function sets the cursor itself.
~ Tectu
~ Tectu
Return to “LCD Driver and Graphic Framework”
Who is online
Users browsing this forum: No registered users and 4 guests