View previous topic :: View next topic |
Author |
Message |
rolf_edmundo_guse
Joined: 17 Apr 2019 Posts: 9
|
Help for GLCD 128X64 driver ST7920 |
Posted: Wed Apr 17, 2019 6:43 am |
|
|
I'm new to this forum and I apologize if you're posting something wrong.
I'm struggling to find library glcd 128x64 drive st7920 someone would use pic18f87k22 |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19375
|
|
Posted: Wed Apr 17, 2019 6:52 am |
|
|
Look in the code library:
<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920> |
|
![](templates/subSilver/images/spacer.gif) |
rolf_edmundo_guse
Joined: 17 Apr 2019 Posts: 9
|
|
Posted: Wed Apr 17, 2019 7:05 am |
|
|
Ttelmah wrote: | Look in the code library:
<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920> |
Thanks for the answer, i will be implementing and performing test soon post results. |
|
![](templates/subSilver/images/spacer.gif) |
rolf_edmundo_guse
Joined: 17 Apr 2019 Posts: 9
|
|
Posted: Fri Apr 19, 2019 1:59 pm |
|
|
Ttelmah wrote: | Look in the code library:
<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920> |
I did the tests in text mode works, in graphical mode I was not able to perform. Does anyone have an example of using graphic mode? |
|
![](templates/subSilver/images/spacer.gif) |
rolf_edmundo_guse
Joined: 17 Apr 2019 Posts: 9
|
Re: Help for GLCD 128X64 driver ST7920 |
Posted: Fri Apr 19, 2019 8:28 pm |
|
|
rolf_edmundo_guse wrote: | I'm new to this forum and I apologize if you're posting something wrong.
I'm struggling to find library glcd 128x64 drive st7920 someone would use pic18f87k22 |
After reading the datasheet several and several times discovers that the error for use of the graphical mode on the lcd 128x64 drive st7920.
Code: |
void glcd_update ()
{
int8 v, h;
if (gdram.refresh)
{
for (v = 0; v <YVAL; v ++) // 64
{
if (v <32) // first part
{
glcd_instruction (0x80 | v); // Set Vertical Address.
glcd_instruction (0x80); // Set Horizontal Address.
}
else // second lcd stop
{
glcd_instruction (0x80 | (v - 32)); // Set Vertical Address.
glcd_instruction (0x88); // Set Horizontal Address.
}
for (h = 0; h <XVAL; h ++) // 8
{
glcd_data (gdram.pix [v] [h] .nbyte [1]); // Write High Byte.
glcd_data (gdram.pix [v] [h] .nbyte [0]); // Write Low Byte.
}
}
gdram.refresh = FALSE;
}
} |
|
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9176 Location: Greensville,Ontario
|
|
Posted: Sat Apr 27, 2019 8:16 am |
|
|
Nice ! You should actually post your 'driver code' in the 'Code Library' forum as well. It's a great source of working code!!
Jay
+++++++++++++++++++++
Driver code posts moved to Code Library forum:
http://www.ccsinfo.com/forum/viewforum.php?f=2
-Forum Moderator
+++++++++++++++++++++ |
|
![](templates/subSilver/images/spacer.gif) |
rolf_edmundo_guse
Joined: 17 Apr 2019 Posts: 9
|
|
Posted: Sat Apr 27, 2019 2:16 pm |
|
|
temtronic wrote: | Nice ! You should actually post your 'driver code' in the 'Code Library' forum as well. It's a great source of working code!!
Jay
+++++++++++++++++++++
Driver code posts moved to Code Library forum:
http://www.ccsinfo.com/forum/viewforum.php?f=2
-Forum Moderator
+++++++++++++++++++++ |
OK |
|
![](templates/subSilver/images/spacer.gif) |
|