Hi
I am using a DFROBOT button Lcd shield and using the sketch I am playing with the numbers up to 100 have a 0 after them so 12 turns out as 120 could you please put me right.
#include <LiquidCrystal.h> // Use the standard library
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup()
{
lcd.begin(16, 2); // set up the LCD's number of columns and rows
lcd.print(" A02 Value"); // Print hello world to the first line
pinMode(10, OUTPUT); // Set up pin 10 for the backlight control
pinMode(0, INPUT); // Set up pin 0 to read the keypad
}
void loop()
{
analogWrite(10,255 ); // Set the backlight to full brightness
int log2=analogRead(2); // Read the value from keypad
lcd.setCursor(6, 1); // Set the cursor to column 0, line 1
lcd.print(log2/4); // Print the key pad value to the second line
}
sorry but I am new to this.
Regards
Bill.