GLCD picture icon

Post your requests and ideas on the future development of mikroBasic for AVR.
Post Reply
Author
Message
Adam
Posts: 38
Joined: 18 Sep 2008 10:21

GLCD picture icon

#1 Post by Adam » 01 Oct 2008 05:19

After using Glcd_init() routine , how to draw a picture picture with special pixel like T6963_sprite ?

Example I have i picture like this .In T6963c I jsut using t6963_sprite(mybitmap,1,1,32,32) 'that mean i draw a bitmap 32x32 at (x,y)=(1,1) . But with GLCD library doesn't have this function ????

const mybitmap as byte[128] = (0x00, 0x00, 0x80, 0xE0, 0xF0, 0x78, 0x38, 0x3C, 0xBC, 0xB8, 0xF0, 0xE0, 0xC0, 0x80, 0xE0, 0xE0,
0x20, 0x00, 0xFE, 0xC0, 0x00, 0xFE, 0xC6, 0x7C, 0xFE, 0x1E, 0xFE, 0x38, 0xFE, 0xE6, 0xF6, 0x00,
0x00, 0xFC, 0x1F, 0x03, 0xF2, 0xFE, 0xFE, 0xCE, 0x0E, 0xFF, 0xFE, 0xFD, 0x3F, 0xFF, 0xE3, 0x00,
0x18, 0xF8, 0x08, 0xF8, 0xF8, 0x78, 0xF8, 0x08, 0x18, 0xF8, 0x08, 0xF8, 0xF8, 0x70, 0xF8, 0x00,
0x00, 0x0F, 0xFC, 0xFF, 0xFF, 0xE3, 0xE1, 0xEC, 0xEF, 0xA7, 0xCF, 0xCF, 0xE4, 0xBF, 0x1F, 0x00,
0x60, 0x23, 0x20, 0x03, 0xE3, 0x80, 0xE3, 0xE0, 0x00, 0xE3, 0xA0, 0xE3, 0xC3, 0xE0, 0xE3, 0x00,
0x00, 0x00, 0x07, 0x0A, 0x13, 0x15, 0x11, 0x23, 0x43, 0x21, 0x19, 0x13, 0x09, 0x7F, 0x70, 0x60,
0x70, 0x41, 0xB1, 0x60, 0x01, 0x71, 0x30, 0x61, 0x20, 0x71, 0x71, 0x71, 0x60, 0x61, 0x71, 0x60 )

Cyberzim
Posts: 104
Joined: 12 Jun 2008 00:09
Location: Denmark

#2 Post by Cyberzim » 25 Oct 2008 23:31

Hi!
Maybe this code can help you.

Code: Select all

sub procedure picture1

j = 0
glcd_set_side(0)              'sets location
glcd_set_page(j)              '
for i = 0 to 127              'for 128byte bitmap
glcd_read_data()              'read data
data = glcd_read_data()       '
data = data or image1[i]      'get new data
glcd_write_data(data)         'writes data to glcd
if (i + 1) mod 32 = 0 then    'test when the first line is done
j = j + 1                     'switch to next line
glcd_set_page(j)              'sets location
glcd_set_side(0)              '
end if
next i
end sub
That's how I do when I need to use bitmaps smaller than the whole screen.
Name: Simon H.A.
Age: 17

Adam
Posts: 38
Joined: 18 Sep 2008 10:21

#3 Post by Adam » 06 Nov 2008 17:33

That's code is mine . You use my code to help myself ????

Post Reply

Return to “mikroBasic for AVR Wish List”