#define HIGH_BTN 2
#define LOW_BTN 4
#define LED 11
byte count = 0;
void setup() {
// put your setup code here, to run once:
pinMode(HIGH_BTN, INPUT);
pinMode(LOW_BTN, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(HIGH_BTN)==HIGH){
count +=1;
analogWrite(LED,count);
}
if (digitalRead(LOW_BTN)==HIGH){
count -=1;
analogWrite(LED,count);
}
}