Hello guys i have a project from my college, but im stuck at the program.
I dont understand how to input ex:1000 from keypad. this is my code.
#include <Keypad.h>
#include <LiquidCrystal_I2C.h>LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
const byte numRows= 4; //baris pada keypad
const byte numCols= 4; //Kolom pada keypad/keymap mendefinisikan tombol ditekan sesuai
dengan baris dan kolom seperti muncul pada keypad/
char keymap[numRows][numCols]=
{
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};byte rowPins[numRows]= {9,8,7,6};
byte colPins[numCols]= {5,4,3,2};
char input[10];
int i=0;
int result;
Keypad myKeypad= Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);void setup()
{
Serial.begin(9600);lcd.begin(16, 2);
lcd.setCursor(1, 0);
lcd.print("Keypad dan LCD");lcd.setCursor(2, 1);
lcd.print("COBA KEYPAD");
delay(5000);
lcd.clear();
}void loop()
{
lcd.setCursor(1, 0);
lcd.print("Enter your number");char customKey = myKeypad.getKey();// inisialisasi keyped sebagai tampilan character
lcd.setCursor(0,1);
input*=customKey;*if (customKey){
i++;*
lcd.print(customKey);*
}
}[/quote]
It still just showed 1 besides i have an increment code in if. please help me.

