Python Forum
Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
#1
I have been unable to find out how to write normal ascii data to a LCD display using i2c.
One of the code snippets I have tried is:
Bus=smbus,SMBus(1)
Bus.write_byte_data(addr,register,value)
and
Bus.write_block_data(addr,register,value1,value2,value3)
How do I write ascii data to the LCD display
The value variables are integers and I want to write ascii data such as "Time=02:34:45"
I am trying to write strings of data to the LCD display and cannot fine any help to do this.
Any responses will be most appreciated.
Reply
#2
the 6398 is a typo which should not be there
Reply
#3
I wouldn't expect most character LCDs to speak i2c. Do you have one from Adafruit or similar? They have a library for their i2c backpack that you might be able to use. Have you tried that?
Reply
#4
(Apr-28-2022, 03:10 AM)bowlofred Wrote: I wouldn't expect most character LCDs to speak i2c. Do you have one from Adafruit or similar? They have a library for their i2c backpack that you might be able to use. Have you tried that?
Reply
#5
my LCD is from sparkfun and I also have one from New Haven.

I don't understand why I can't find an example of writing ascii characters on an i2c bus to a character LCD display.
I will take a look at the adafruit i2c backpack library, thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to display <IPython.core.display.HTML object>? pythopen 3 46,008 May-06-2023, 08:14 AM
Last Post: pramod08728
Information Unable to display joystick's value from Python onto display box MelfoyGray 2 2,248 Nov-11-2020, 02:23 AM
Last Post: MelfoyGray
  How to display what I write on sublime text editor on the CMD el_bueno 5 3,249 Feb-04-2019, 02:00 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020