Read entire bitmap stored in GLCD register
Read entire bitmap stored in GLCD register
I need to be able to send the bitmap that is currently in the GLCD and send it to my PC using UART, then read the sent data using Python. Is it possible to send the memory stored with the GLCD memory at one time, or if not, is it possible to send via one pixel at a time?
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: Read entire bitmap stored in GLCD register
Hi,
You can use GLCD Library, check the function Glcd_Read_Data in the help menu in the compiler.
Best regards,
Lana
You can use GLCD Library, check the function Glcd_Read_Data in the help menu in the compiler.
Best regards,
Lana
Re: Read entire bitmap stored in GLCD register
Hi there!
Most of the time when I read the data back with Glcd_Read_Data(), it only returns a blank line. Occasionally, it will return some characters as well. What am I doing wrong? Or how many times should i read in order to read the entire contents of the display?
Thank you!
Most of the time when I read the data back with Glcd_Read_Data(), it only returns a blank line. Occasionally, it will return some characters as well. What am I doing wrong? Or how many times should i read in order to read the entire contents of the display?
Thank you!
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: Read entire bitmap stored in GLCD register
Hi,
When you get the data with Glcd_Read_Data function you can try to store it in an array of bytes.
You may also find these threads useful:
http://forum.mikroe.com/viewtopic.php?t=14391
http://forum.mikroe.com/viewtopic.php?t=15523
Best regards,
Lana
When you get the data with Glcd_Read_Data function you can try to store it in an array of bytes.
You may also find these threads useful:
http://forum.mikroe.com/viewtopic.php?t=14391
http://forum.mikroe.com/viewtopic.php?t=15523
Best regards,
Lana
Re: Read entire bitmap stored in GLCD register
Hi!
So if I were to want to recreate the image on a computer, would just reading using glcd_read_data be enough? Or is there something else I need in order to recreate the image?
-David
So if I were to want to recreate the image on a computer, would just reading using glcd_read_data be enough? Or is there something else I need in order to recreate the image?
-David
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: Read entire bitmap stored in GLCD register
Hi David,
If you want to recreate image, after reading the image with Glcd_Read_Data,
you will need to add manually Bitmap file header and other structures which are contained in BMP file format.
You will also need to use another functions in addition with Glcd_Read_Data.
Please look in the Help menu, also take a look at the threads from the previous answer.
Best regards,
Lana
If you want to recreate image, after reading the image with Glcd_Read_Data,
you will need to add manually Bitmap file header and other structures which are contained in BMP file format.
You will also need to use another functions in addition with Glcd_Read_Data.
Please look in the Help menu, also take a look at the threads from the previous answer.
Best regards,
Lana