Read entire bitmap stored in GLCD register

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
dave07747
Posts: 3
Joined: 05 Jun 2016 18:13

Read entire bitmap stored in GLCD register

#1 Post by dave07747 » 05 Jun 2016 18:17

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?

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Read entire bitmap stored in GLCD register

#2 Post by lana.arsic » 06 Jun 2016 12:45

Hi,

You can use GLCD Library, check the function Glcd_Read_Data in the help menu in the compiler.

Best regards,
Lana

dave07747
Posts: 3
Joined: 05 Jun 2016 18:13

Re: Read entire bitmap stored in GLCD register

#3 Post by dave07747 » 09 Jun 2016 23:04

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!

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Read entire bitmap stored in GLCD register

#4 Post by lana.arsic » 11 Jun 2016 05:59

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

dave07747
Posts: 3
Joined: 05 Jun 2016 18:13

Re: Read entire bitmap stored in GLCD register

#5 Post by dave07747 » 11 Jun 2016 20:22

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

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Read entire bitmap stored in GLCD register

#6 Post by lana.arsic » 14 Jun 2016 08:30

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

Post Reply

Return to “mikroC PRO for AVR General”