Recent Changes - Search:

Video Sites

NCECAYoutubeIndex

Thai

w0it

pmwiki.org

edit SideBar

CountUpREsetWithIf

int increment = 1; 
int maximum = 100; // maximim delay with LED on in milliseconds
int minimum = 1;
int LED = 13; //LED pin number
int x = 0;
void setup() {
  // put your setup code here, to run once:
  pinMode(LED, OUTPUT);
}

void loop() {

  digitalWrite(LED, HIGH);
  delay(x);
  digitalWrite(LED, LOW);
  delay(100);
  x = x + increment;
  if (x > Max)
  {
    x = 0;
  }

}
Edit - History - Print - Recent Changes - Search
Page last modified on February 23, 2020, at 08:57 PM