okay so ive being having some problems using a user contributed library, the LCD Bargraph Library.
http://arduino.cc/playground/Code/LcdBarGraphthe best way to show you is to show you on the example itself.
#include <LiquidCrystal.h>
#include <LcdBarGraph.h>
byte lcdNumCols = 16; // -- number of columns in the LCD
byte sensorPin = 0; // -- value for this example
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // -- creating LCD instance
LcdBarGraph lbg(&lcd, lcdNumCols); // -- creating
void setup(){
// -- initializing the LCD
lcd.begin(2, lcdNumCols);
lcd.clear();
// -- do some delay: some time I've got broken visualization
delay(100);
}
void loop()
{
lcd.setCursor(0,1); // ---------<<<<<<<<<<<<<<<<< this is the only line i have added, to change the starting position of the bargraph to the second line<<<<<<<<<<<<<<<<<<<<<<<<<<
// -- draw bar graph from the analog value readed
lbg.drawValue( analogRead(sensorPin), 1024);
// -- do some delay: frequent draw may cause broken visualization
delay(100);
}
This has no effect, so I am unable to use the library to display multiple graphs, help!!
How is my grammar, LOL.
