const int buttonPIN =12;
const int ledPin= 11;
int buttonState= 0;
ledState = HIGH
int buttonState - LOW
unsigned long deBounceTime= 0;
unsigned long debounceDelay= 50;
void setup() {
// put your setup code here, to run once:
pinMode( ledPin,OUTPUT);
pinMode( buttonPin, INPUT);
digitalWrite(ledPin, ledstate);
}
void loop() {
// put your main code here, to run repeatedly:
int reading = digitalRead(buttonPin);
if (reading 1< lastButtonState)
{
deBounceTime = millis()
}
if millis() - lastDebounceTime > debiunceDelay
{
}
}