YARPF

Raspberry Pi Logo YetAnotherRaspberryPiFanpage

3.0 - Un Pulsador

Plan

wiring plan

Board

bread board

Code

int pinButton = 9;

void setup() {
  Serial.begin(9600);
  pinMode(pinButton, INPUT);
}

void loop() {

  int buttonState = digitalRead(pinButton);
  Serial.println(buttonState);
  delay(10);
}

Download

Fritzing: button.fzz

Comments ?

blog comments powered by Disqus