I am working on the i2c interfacing with different modules but am having some confusion regarding its use without libraries of particular devices. I was working with the i2C LCD module and wanted to use only the wire.h instead of the i2c liquid crystal library. I want to ask if that is possible or not. If yes, kindly share some links/sites to continue on this.
That's possible, of course, but for meaningful output you have to write your own command handlers.
Your question indicates to me that you have no idea what the display library does and what you have to implement yourself if you decide not to use that library. How much time do you want to spend in writing your own display library?
So why do you want to use the Wire library but not the display library?
yes you can use Wire.h and omit the I2C Liquid Crystal. You just have to write your own functionalities to drive a LCD. I only wonder why you would like to invest time in someting what others have already done in the past.
Displays are weird, because they can be in 4-bit or in 8-bit mode or in a certain state. Special initialization code is required to capture the display.
LCD displays are weird, because they are not all the same.
LiquidCrystal libraries are weird, because they are no longer maintained or Arduino uses the wrong links, or whatever.
That's why you get these cheesy replies to your question ![]()
Arduino user bperrybap has gone a great length to make a "hd44780" library that works: https://github.com/duinoWitchery/hd44780.
If you want code without a library that works just as good, then I suggest to print the source code of the "hd44780" library on paper and then carefully type that into the computer
but don't call it a library ![]()
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.