Arduino i2c for 16x2 lcd no backlight or text after upload [solved]

neepie:

Did you set the line ending to newline? (it is part of #6 instructions)

Oh right, now i know what the newline thing means :smiley:
So I assume it is working now?

It isn't that simple. It depends on the current draw for the backlight.

I thought of that too. According to multimeter it takes so little current that 10A range does not recognize it when running at "20".
But when i take it upto "220" pwm it will show something about 10mA. I really do need to get me a new fuse on the 400mA to get more accurate results.

What is important to know is the 100% duty cycle current.
To measure this you don't need to use an Arduino.
Just hook your meter between the LCD backlight power pin and power.
That will tell you the maximum current the backlight draws.
One area of caution here relates to the backlight resistor.
Where is it?
Is it on the lcd module or is it on the backpack on the other side of the
transistor?
If it is external to the backlight, you will need to make sure you still use one.

Many 16x2 LCD backlights can be supported directly from an AVR pin.
I've seen some use as little as 2ma. However I've seen others use as much
as 50 to 75ma so you do have to measure the 100% duty cycle current to
make sure how much yours draws.

If it draws more than 40ma you could try to use a resistor to lower it.
If it gets too dim, you will have do some cuts & jumps on the backpack
so you can use the backpack transistor.