Hi Joep,

After some Googling I found the following datasheet:
> http://www.shopeio.com/inventory/pdf/SeikoChar.pdf
which seems to confirm that the offsets for line 3 and 4 are variable.
Good to keep it variable and the warning in the text of the lib.
BTW The comments above the procedure lcd_cursor_position() still contain 
the old name 'lcd_set_cursor'...

Regards, Rob.


Joep Suijs wrote:

> I can't test it either, but according to the comment of set_cursor,
> you are right. I'll change it back.
> 
> Joep
> 
> 2009/3/7 Rob Hamerling <[email protected]>:
>>
>> Hi guys,
>>
>> I see a difference in the handling of LCDs with more than 2 lines.
>> The refactured lib contains:
>>
>>>  case line of
>>>     0: return 0x00
>>>     1: return 0x40
>>>     2: return 0x14
>>>     3: return 0x54
>>>  end case
>> while the current version contains
>>
>>> col = col | 0b1000_0000
>>> case row of
>>>    1: col = col + 0x40
>>>    2: col = col        + LCD_CHARS
>>>    3: col = col + 0x40 + LCD_CHARS
>>> end case
>> Are we sure all 4-line displays use an offset of decimal 20, even the 4
>> x 16 displays?  I have here a 4 x 20 lcd, but no 4 x 16 display, so I
>> cannot test.
>>
>> Regards, Rob.
>>
>>
>>
>> --
>> Rob Hamerling, Vianen, NL (http://www.robh.nl/)
>>
> 
> > 
> 

-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to