Go to advanced search

by suppenfritz
Mon Dec 15, 2014 8:23 am
Forum: Python
Topic: 20x4 i2c lcd lines out of order.
Replies: 23
Views: 25955

Re: 20x4 i2c lcd lines out of order.

:idea: Add this function for char(s) positioning on LCD into file: lcddriver.py: def lcd_display_string_pos(self, string, line, pos): if line == 1: pos_new = pos elif line == 2: pos_new = 0x40 + pos elif line == 3: pos_new = 0x14 + pos elif line == 4: pos_new = 0x54 + pos self.lcd_write(0x80 + pos_n...

Go to advanced search