• BLOG
    • Table of Contents
    • OXIDE: Introduction and The Heart of the City
    • OXIDE - Lovers' Lane
    • OXIDE: The Academy
    • OXIDE: The Art Scene
    • OXIDE - Old City
    • OXIDE - Hard Science
    • OXIDE: The Other Side of the Tracks
    • OXIDE: The Outskirts
    • OXIDE - 183 Pictures That Didn't Make in the Book
    • Table of Contents
    • Someplace Else: Group 1
    • Someplace Else: Group 2
    • Somplace Else: Group 3
    • Somplace Else: Group 4
    • Part 1 Table of Contents
    • Deep Archive 1 : Introduction and Wall Pictures
    • Deep Archive 1: Protest
    • Deep Archive 1: Politics and the Famous
    • Deep Archive 1: Elevator Pictures
    • Deep Archive 1: Portraits of a Sort
    • Deep Archive 1: The Photographers
    • Deep Archive 1: People Doing Things
    • Deep Archive 1: Automobile Pictures
    • Deep Archive 1: More People Doing Things etc.
    • Deep Archive 1: The Viking Way
    • Deep Archive 1: Cleveland High School
    • Part 2 Table of Contents
    • Deep Archive 2: Mid
    • Deep Archive 2: Early
    • Deep Archive 2: Late
    • Deep Archive 2: Trying Out the Studio
    • Deep Archive 2: The Photographers
    • Deep Archive 2: Let the Good Times Roll
    • Proposals
    • Drawings
    • Short Stories
    • Kid Pix - The Early Years
    • Apparatus
    • Buckman Portraits
    • Negative Copying
    • Cartesians
    • Loose Leaf
    • The Lamp Posts of Alton Baker Park
    • Animals and Insects
    • Character
    • Composites
  • Dry Reading Store
  • About
  • Contact
Menu

Dry reading

  • BLOG
  • OXIDE
    • Table of Contents
    • OXIDE: Introduction and The Heart of the City
    • OXIDE - Lovers' Lane
    • OXIDE: The Academy
    • OXIDE: The Art Scene
    • OXIDE - Old City
    • OXIDE - Hard Science
    • OXIDE: The Other Side of the Tracks
    • OXIDE: The Outskirts
    • OXIDE - 183 Pictures That Didn't Make in the Book
  • Somplace Else
    • Table of Contents
    • Someplace Else: Group 1
    • Someplace Else: Group 2
    • Somplace Else: Group 3
    • Somplace Else: Group 4
  • Deep Archive
    • Part 1 Table of Contents
    • Deep Archive 1 : Introduction and Wall Pictures
    • Deep Archive 1: Protest
    • Deep Archive 1: Politics and the Famous
    • Deep Archive 1: Elevator Pictures
    • Deep Archive 1: Portraits of a Sort
    • Deep Archive 1: The Photographers
    • Deep Archive 1: People Doing Things
    • Deep Archive 1: Automobile Pictures
    • Deep Archive 1: More People Doing Things etc.
    • Deep Archive 1: The Viking Way
    • Deep Archive 1: Cleveland High School
    • Part 2 Table of Contents
    • Deep Archive 2: Mid
    • Deep Archive 2: Early
    • Deep Archive 2: Late
    • Deep Archive 2: Trying Out the Studio
    • Deep Archive 2: The Photographers
    • Deep Archive 2: Let the Good Times Roll
  • More
    • Proposals
    • Drawings
    • Short Stories
    • Kid Pix - The Early Years
    • Apparatus
    • Buckman Portraits
    • Negative Copying
    • Cartesians
    • Loose Leaf
    • The Lamp Posts of Alton Baker Park
    • Animals and Insects
    • Character
    • Composites
  • Dry Reading Store
  • About
  • Contact

Buttons

April 16, 2017

int buttonPin = 8;     // the number of the pushbutton pin
int ledPin =  5;      // the number of the LED pin

int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
}

void loop() {
  buttonState = digitalRead(buttonPin);

  if (buttonState == HIGH) {
    digitalWrite(ledPin, HIGH);
  } else {
    digitalWrite(ledPin, LOW);
  }
}

Powered by Squarespace