Jump to content

Recommended Posts

Posted

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.

Posted

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

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...
×
×
  • Create New...