I wrote some notes by just a quick look at my libs. may not be complete or accurate.
LCD DEVICE LIB REQUIREMENTS (must be contained in lib): -- constants required on all glcd's const GLCD_X_PIXELS = 240 const GLCD_Y_PIXELS = 320 const GLCD_COLOR_BITS = 16 -- 16bit color, 65535 colors -- required for drawing shapes. procedure lcd_write_pixel(byte in x,word in y,word in color) is -- only required if using fonts. -- See glcd_font.jal for an explanation of how fonts work -- and how they should be printed to the screen. -- by lcd'put(byte in char) in glcd_common procedure lcd_write_char(byte in font[], byte in x,word in y,byte in value) is GLCD FONT LIB INCLUDE BLOCK (for your sample) -- setup fonts const byte FONT_MORE_THEN_ONE = TRUE -- use more then one font const byte FONT_BIT_DIRECTION = FONT_TOP_RIGHT_HORIZONTAL -- see constants_jallib.jal const byte FONT_AUTO_WRAP = TRUE -- auto wrap text at end of screen -- include glcd_font -- include the font library -- -- choose some fonts alias FONT_1 is FONT_8X12_TOP_RIGHT_HORIZONTAL_NO_NAME alias FONT_1_WIDTH is FONT_8X12_WIDTH alias FONT_1_HEIGHT is FONT_8X12_HEIGHT -- -- set your current font FONT_NUMBER = 1 -- select your font number FONT_WIDTH = FONT_1_WIDTH -- must match current font width FONT_HEIGHT = FONT_1_HEIGHT -- must match current font height GLCD_COMMON INCLUDE BLOCK (for your sample) var word LCD_BACK_COLOR = 0xFFFF -- white var word LCD_PEN_COLOR = 0 -- black include glcd_stm032qvt-003 glcd_init() include glcd_common HOW TO PRINT A FONT AND SHAPE IN YOUR SAMPLE -- set back color LCD_BACK_COLOR = 0xffe0 -- yellow LCD_PEN_COLOR = 0xf800 -- red pen -- -- prints a string with current font -- see "-- set your current font" near your glcd_font include glcd_char_x_pos = 80 -- set a x position glcd_char_y_pos = 320 - 12 -- set a y position const byte string_y[] = "Y: " -- define a string print_string(lcd,string_y) -- print a string -- draw a new circle LCD_PEN_COLOR = 0xf800 -- RED PEN lcd_circle(touch_x,touch_y,20) -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
