Tactile Push Button with Cap – 12mm

(32 customer reviews)

$1.49

Clear

Description

Tactile buttons are great way to add interactive elements to all sorts of projects. The coloured cap is removable and the pins fit directly into a breadboard.

Tactile Push Button Code


/* SETUP

Button         Arduino
S       -      D2
        -      5V
-       -      GND
*/
 
// set pin numbers
const int buttonPin = 2;    // the number of the pushbutton pin
const int ledPin =  13;   // the number of the LED pin

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

void setup() {
  pinMode(ledPin, OUTPUT);    // initialize the LED pin as an output
  pinMode(buttonPin, INPUT);    // initialize the pushbutton pin as an input
}

void loop() {
  buttonState = digitalRead(buttonPin);   // read the state of the pushbutton value
  
  if (buttonState == HIGH) {    // if button is pressed, the buttonState is HIGH
    digitalWrite(ledPin, HIGH);   // turn LED on
  } else {
    digitalWrite(ledPin, LOW);    // turn LED off
  }
}

 

Additional information

Weight 0.001 kg
Colour

, , , ,

  1. Advsnw

    order atorvastatin 80mg generic order atorvastatin pills cost lipitor 20mg

  2. Wdiebx

    order cipro online – buy keflex 125mg online cheap augmentin 1000mg generic

  3. Ctcjcw

    buy ciprofloxacin pill – cipro 500mg generic how to get augmentin without a prescription

  4. Gyuprm

    metronidazole uk – buy generic cefaclor purchase azithromycin online

  5. Wnowky

    ciprofloxacin 500 mg canada – doryx for sale order erythromycin 500mg for sale

  6. Exwzoq

    generic valacyclovir – order generic acyclovir 400mg zovirax 400mg over the counter

  7. Sfbjnq

    stromectol 6mg – buy sumycin pill sumycin canada

  8. Czigpw

    buy metronidazole 200mg pills – buy cleocin 300mg pill buy azithromycin sale

  9. Pycenp

    ampicillin order amoxil online buy amoxicillin generic

  10. Qblmav

    purchase furosemide sale – order generic furosemide 40mg captopril 25 mg oral

  11. Cvgvfh

    order glucophage 500mg for sale – how to get trimethoprim without a prescription lincocin 500 mg pills

  12. Ftxhlr

    how to get cheap retrovir without a prescription – where to buy lamivudine without a prescription zyloprim 100mg sale

  13. Jlacyr

    clozaril where to buy – accupril for sale online cost famotidine 20mg

  14. Wqlqwa

    buy generic seroquel for sale – luvox 50mg without prescription buy generic eskalith for sale

  15. Cwhswx

    anafranil 25mg canada – buy imipramine 25mg without prescription pill doxepin 75mg

  16. Nmspxj

    buy atarax 25mg online – brand escitalopram order endep 25mg online

  17. Omkplb

    order augmentin 1000mg online – ampicillin drug order generic baycip

  18. Fngnou

    amoxil for sale – buy cheap generic keflex ciprofloxacin buy online

  19. Bdknxj

    cleocin generic – buy chloramphenicol online cheap buy generic chloromycetin

  20. Totuph

    order azithromycin 250mg online – oral flagyl buy cheap generic ciplox

  21. Tugfuf

    stromectol online canada – doryx order online generic cefaclor 500mg

  22. Zeihnc

    order ventolin inhalator online – theophylline 400 mg uk purchase theophylline sale

  23. Ecdwrf

    purchase clarinex generic – zaditor 1mg brand cost ventolin 4mg

  24. Vpazqs

    buy generic medrol – buy azelastine 10ml nasal spray buy azelastine paypal

  25. Cqochp

    purchase glyburide online cheap – order micronase 5mg pills dapagliflozin over the counter

  26. Jeggib

    order repaglinide 1mg online – repaglinide 1mg over the counter empagliflozin order

  27. Jhskjf

    order metformin pills – cheap losartan 50mg order precose 25mg online cheap

  28. Nlugvi

    lamisil cheap – buy diflucan 200mg generic grifulvin v uk

  29. Lnxgjs

    semaglutide 14 mg for sale – order semaglutide pills buy DDAVP generic

  30. Hfsuro

    buy generic nizoral over the counter – buy mentax itraconazole us

  31. Ytyxzu

    famciclovir us – valcivir without prescription order valaciclovir 1000mg generic

  32. Cchgyy

    where to buy digoxin without a prescription – order irbesartan 150mg pill order furosemide 100mg online

Add a review

Your email address will not be published. Required fields are marked *