Ok. So I connected my lcd and all that. And now I uploaded the Adafruit_LiquidCrystal->HelloWorld_i2c sketch and it blinks like it should, but it doesn't show the text.I also tried to make it display the amount of collomns of my lcd, which is 20 by 4. I also tryed removing the code of it blinking. What should I do?
Here is my code, in case that is usefull:
- Code: Select all | TOGGLE FULL SIZE
/*
Demonstration sketch for Adafruit i2c/SPI LCD backpack
using MCP23008 I2C expander
( http://www.ladyada.net/products/i2cspilcdbackpack/index.html )
This sketch prints "Hello World!" to the LCD
and shows the time.
The circuit:
* 5V to Arduino 5V pin
* GND to Arduino GND pin
* CLK to Analog #5
* DAT to Analog #4
*/
// include the library code:
#include "Wire.h"
#include "Adafruit_LiquidCrystal.h"
// Connect via i2c, default address #0 (A0-A2 not jumpered)
Adafruit_LiquidCrystal lcd(0);
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(20, 4);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
//lcd.setBacklight(HIGH);
//delay(500);
// lcd.setBacklight(LOW);
//delay(500);
}