Re: I2c Help

 
#1

Hi DJ,

In your i2c help, you mentioned that the address is 7 bits correct me if i'm wrong but if you've got bit 0-7 then isn't it 8 bits?

Let me explain:

bit 0 - 1 bit
bit 1 - 1 bit
bit 2 - 1 bit
bit 3 - 1 bit
bit 4 - 1 bit
bit 5 - 1 bit
bit 6 - 1 bit
bit 7 - 1 bit

You see? in total, you've got 8 bits now.



Edit: wait i'm confused *blush* please delete this thread.....

#2

Hahahaha. well, you'll be able to find some i2c in here: http://www.ez-robot.com/Community/Forum/posts.aspx?threadId=322

Smile

#3

DJ,
Did you ever get a chance to mess around with the i2c LCD. Mine just sits there being blue. "Hello world" would be awsome.

#4

I tried, lots. But those lcd's have zero documentation. Without documentation, i'm shooting in the dark. There is a combination of hundreds of addresses and commands to guess from. Thousands actually. I know why they're so cheap now!

#5

@DJ

I found this arduino code:

Code:


#include
#include

LiquidCrystal_I2C lcd(0x27,16,2); //set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("hello world");
lcd.setCursor(0, 1);
lcd.print("hello world 2");
}



I bet you will find out how to do it if you decompile the LiquidCrystal library.


Also @Bookmaker what LCD do you have?

#6

I've looked at the library. We've tried the 0x27 address. The issue is these no-name i2c lcd's have no documentation so we don't even know what address they are, or if they've even compatible with that library.

#7

You could try with an arduino first, i'm afraid to ask, but do you have one laying around?

#8

I looked in the turorials and don't see anything on how to program the Serial ones. Are they ease for a none nerd like me? I want to replace the i2c one and get the LCD up and running. Iyron, you are welcome to my old one.

#9

I may have found the solution.
i2c LCD forum
It states some ways down the they shipped the wrong library with the LCD and they give a url for the correct one.
Naturly I don't have the vaguest idea what they are talking about however you may.

correct library

#10

@Bookmaker
Yes, serial LCDs are so much easier, i have a sparkfun one that i got up and running in less than 10mins.

Anyways,
Good luck with the library you found!
If you need any help, hit me up.