Jump to content

4 x 20 LCD


Labelwhore
 Share

Recommended Posts

is this all I have to change in the setup_*.asm file to get a 4 x 20 LCD working with all 4 lines? because it doesn't seem to be working for me...

	;; number of LCD lines (supported: 2 for 2x* LCDs and 4 for 4x* LCDs)
#define DEFAULT_LCD_LINES 4

	;; LCD line -> cursor offsets
#define DEFAULT_LCD_LINE_Y0	0x00
#define DEFAULT_LCD_LINE_Y1	0x40
#define DEFAULT_LCD_LINE_Y2	0x14
#define DEFAULT_LCD_LINE_Y3	0x54

does anybody have an already configured .hex file I could use? that is the only change I have made.

Link to comment
Share on other sites

nevermind, I cut and pasted a section of setup_tk2.asm and it seems to work just fine now. this is what I used:

	;; number of LCD lines (supported: 2 for 2x* LCDs and 4 for 4x* LCDs)

#define DEFAULT_LCD_LINES 4

	;; LCD line -> cursor offsets
#define DEFAULT_LCD_LINE_Y0	0x40
#define DEFAULT_LCD_LINE_Y1	0x14
#define DEFAULT_LCD_LINE_Y2	0x00
#define DEFAULT_LCD_LINE_Y3	0x54

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...