Author | Matthew Schinkel - borntechi.com, copyright © 2009, all rights reserved. |
Adapted-by | |
Compiler | >=2.4k |
Library for Color GLCD 320x240 stm032qvt-003 TFT display. Internal TFT GLCD driver is HX8347-A.
http://www.divshare.com/download/11463401-4a9
This library must use fonts with horizontal bit alignment
const GLCD_GREEN = 0x07E0
const GLCD_TEAL = 0x07ff
const GLCD_Y_PIXELS = 320
const GLCD_BLOCK_WRITE_TYPE = FONT_TOP_LEFT_HORIZONTAL
var word glcd_background_color = GLCD_WHITE
const GLCD_COLOR_BITS = 16
const GLCD_BLACK = 0x0000
const GLCD_YELLOW = 0xffe0
const GLCD_X_PIXELS = 240
const GLCD_WHITE = 0xFFFF
var word glcd_pen_color = GLCD_BLACK
const GLCD_BLUE = 0x001f
const GLCD_RED = 0xf800
glcd_write_pixel(byte in x,word in y)
stm_glcd_write_command_data(word in com1,word in dat1)
glcd_clear_screen()
stm_glcd_write_command(word in data)
stm_glcd_init()
glcd_write_color_byte(byte in data_high,byte in data_low)
glcd_write_color(word in data)
stm_glcd_write_pulse()
stm_glcd_write_data(word in data)
glcd_block_set_address(byte in x1,word in y1,byte in x2,word in y2)
const GLCD_GREEN = 0x07E0
Green
const GLCD_TEAL = 0x07ff
Teal
const GLCD_Y_PIXELS = 320
No documentation found
const GLCD_BLOCK_WRITE_TYPE = FONT_TOP_LEFT_HORIZONTAL
efficient font type
var word glcd_background_color = GLCD_WHITE
Default background color
const GLCD_COLOR_BITS = 16
16bit color, 65535 colors
const GLCD_BLACK = 0x0000
colors constants
const GLCD_YELLOW = 0xffe0
Yellow
const GLCD_X_PIXELS = 240
No documentation found
const GLCD_WHITE = 0xFFFF
White
var word glcd_pen_color = GLCD_BLACK
Default pen color
const GLCD_BLUE = 0x001f
Blue
const GLCD_RED = 0xf800
Red
glcd_write_pixel(byte in x,word in y)
draw one pixel
stm_glcd_write_command_data(word in com1,word in dat1)
Write a command + data
glcd_clear_screen()
set the entire screen one color
stm_glcd_write_command(word in data)
Write a command
stm_glcd_init()
initalize glcd settings
glcd_write_color_byte(byte in data_high,byte in data_low)
Write color in bytes
glcd_write_color(word in data)
Write color.
stm_glcd_write_pulse()
Send a write pulse
stm_glcd_write_data(word in data)
Write data
glcd_block_set_address(byte in x1,word in y1,byte in x2,word in y2)
set start x,y and end x,y addresses
18f4620 | 18f4620_glcd_touch_stm032qvt_003.jal |
18f46k22 | 18f46k22_glcd_touch_stm032qvt_003.jal |