i2c liquidcrystal & MCP23008

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

Moderators: adafruit_support_bill, adafruit

i2c liquidcrystal & MCP23008

Postby skaxxo » Tue Nov 06, 2012 10:25 am

Hi

Could you help me to fix this code?
I want to print all numbers from 0 to 100 on a single row...
but it doesnt works.

any suggestions?

Code: Select all
#include "Wire.h"
#include "LiquidCrystal.h"

LiquidCrystal lcd(0);

void setup() { 
  lcd.begin(16,2);
}

void loop() {
  lcd.setCursor(16,1);
  lcd.autoscroll();
  for (int thisChar = 0; thisChar < 100; thisChar++) {
    lcd.print(thisChar);
    delay(500);
    }
  lcd.clear();
}
Arduino, MODs e DIY: blackstufflabs.com
skaxxo
 
Posts: 15
Joined: Fri May 20, 2011 10:44 am

Re: i2c liquidcrystal & MCP23008

Postby adafruit_support_bill » Tue Nov 06, 2012 12:06 pm

These displays have a 40x2 display buffer. You can't scroll more than 40 characters.
User avatar
adafruit_support_bill
 
Posts: 16650
Joined: Sat Feb 07, 2009 9:11 am

Re: i2c liquidcrystal & MCP23008

Postby skaxxo » Tue Nov 06, 2012 12:19 pm

adafruit_support wrote:These displays have a 40x2 display buffer. You can't scroll more than 40 characters.


...what do you think if i will clean the buffer evry 40 characters?
can i do that?
Arduino, MODs e DIY: blackstufflabs.com
skaxxo
 
Posts: 15
Joined: Fri May 20, 2011 10:44 am

Re: i2c liquidcrystal & MCP23008

Postby adafruit_support_bill » Tue Nov 06, 2012 12:42 pm

It won't be as smooth as the hardware scroll, but it should work. There is a clear() function in the library: http://www.arduino.cc/en/Reference/LiquidCrystal
User avatar
adafruit_support_bill
 
Posts: 16650
Joined: Sat Feb 07, 2009 9:11 am


Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: adafruit_support_bill and 1 guest

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


New Products [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
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[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


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