i2c / SPI character LCD backpack ID: 292

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

i2c / SPI character LCD backpack ID: 292

Postby kenkubick » Thu Feb 09, 2012 11:21 am

I recently baught the i2c / SPI character LCD backpack. I can't get the sample sketch to compile. I keep getting errors. The main error is.

no matching function for call to 'LiquidCrystal(int)'

/*
Demonstration sketch for Adafruit i2c/SPI LCD backpack
using MCP23008 I2C expander
( http://www.ladyada.net/products/i2cspil ... 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 "LiquidCrystal.h"

// Connect via i2c, default address #0 (A0-A2 not jumpered)
LiquidCrystal lcd(0);

void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2);
// 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);
}
kenkubick
 
Posts: 2
Joined: Thu Feb 09, 2012 10:25 am


Re: i2c / SPI character LCD backpack ID: 292

Postby kenkubick » Fri Feb 10, 2012 4:37 am

I got the sketch to compile but I got a message at the botom of the screen. It says avrdude: stk500_getsync(): not in sync: resp=0x30 I don't know what this means. When I try the display with the i2c character LCD backpack. I get nothing on the display.

Thankyou

Ken Kubick
kenkubick
 
Posts: 2
Joined: Thu Feb 09, 2012 10:25 am

Re: i2c / SPI character LCD backpack ID: 292

Postby adafruit_support_bill » Fri Feb 10, 2012 6:20 am

It says avrdude: stk500_getsync(): not in sync: resp=0x30

Make sure that you have the right board type selected in the Tools menu.
ALso make sure that you have the right COM port selected.
User avatar
adafruit_support_bill
 
Posts: 15988
Joined: Sat Feb 07, 2009 9:11 am


Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]