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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...