const int PBplus = 1;
const int PBmin = 2;
const int PBr = 3;
const int PBc = 4;
int pbstate1 = 0;
int pbstate2 = 0;
int pbstate3 = 0;
int pbstate4 = 0;
const int limit = 9;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd (0x27,16,2)
void setup() {
pinMode(PBplus, INPUT);
pinMode(PBmin, INPUT);
pinMode(PBr, INPUT);
pinMode(PBc, INPUT);
lcd.init();
lcd.blacklight();
lcd.setCursor(0,0);
lcd.print(" Raisha Aulia N");
lcd.setCursor(0,0);
lcd print(" 07-02-08 ")
// put your setup code here, to run once:
}
void loop() {
pbstate1 = digitalRead(PBplus);
pbstate2 = digitalRead(PBmin);
pbstate3 = digitalRead(PBr);
pbstate4 = digitalRead(PBc);
if(pbstate1 == HIGH){
digitalWrite(PBplus, HIGH);
Lcd.setCursor (0,1);
Lcd.print("Count=0");
}
// put your main code here, to run repeatedly:
}