Tactile Push Button – 7mm

(30 customer reviews)

$0.99

173 in stock

Description

Tactile buttons are great way to add interactive elements to all sorts of projects. 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
  }
}

 

  1. Qimzlj

    order cabergoline 0.5mg without prescription – premarin cheap buy alesse pills

  2. Blgfff

    гѓ—гѓ¬гѓ‰гѓ‹гѓі еЂ‹дєєијёе…Ґ гЃЉгЃ™гЃ™г‚Ѓ – гѓ—гѓ¬гѓ‰гѓ‹гѓі еЂ‹дєєијёе…Ґ гЃЉгЃ™гЃ™г‚Ѓ アジスロマイシン и–¬е±ЂгЃ§иІ·гЃ€г‚‹

  3. Gmnyrq

    г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ«гЃЇи–¬е±ЂгЃ§иІ·гЃ€г‚‹пјџ – г‚їгѓЂгѓ©гѓ•г‚Јгѓ«йЂљиІ©гЃЉгЃ™гЃ™г‚Ѓ г‚·г‚ўгѓЄг‚№ гЃ©гЃ“гЃ§иІ·гЃ€г‚‹

  4. Weakde

    гѓ—гѓ¬гѓ‰гѓ‹гѓі гЃ®иіје…Ґ – ドキシサイクリン жµ·е¤–йЂљиІ© アキュテイン гЃ®иіје…Ґ

  5. Cjozqg

    eriacta regret – eriacta cheer forzest row

  6. Kpmruy

    valif pills blue – order sinemet online cheap order sinemet 20mg for sale

  7. Ckbmth

    valif online shell – buy generic sinemet 10mg oral sinemet 10mg

  8. Fnicsu

    indinavir over the counter – confido oral order diclofenac gel online cheap

  9. Daniela

    Hi, just wanted too say, I loved thnis article.
    It was inspiring. Keep onn posting!

    Look aat my web sijte missavxxx.com

  10. Munpjk

    buy generic modafinil 200mg – order modafinil 100mg pill order epivir online

  11. Ghspxc

    purchase promethazine – how to get lincomycin without a prescription lincocin 500mg price

  12. Rfjfbp

    ivermectin for cov 19 – ivermectin 12 mg for humans for sale tegretol uk

  13. Sjxnbw

    buy prednisone 5mg without prescription – captopril online order buy capoten 25mg for sale

  14. Mvitxy

    cheap prednisone 10mg – order starlix 120 mg oral capoten

  15. Upttdl

    amoxicillin drug – buy generic ipratropium 100 mcg combivent buy online

  16. Qlyvts

    buy accutane 10mg for sale – buy generic zyvox buy linezolid pills

  17. Dbzklv

    azithromycin 250mg usa – oral tinidazole 300mg order nebivolol generic

  18. Yifawm

    where can i buy prednisolone – progesterone 200mg ca order prometrium 200mg online cheap

  19. Kmotqd

    buy lasix 40mg generic – betamethasone usa3 buy betamethasone 20gm for sale

  20. Sxpgar

    buy gabapentin 600mg without prescription – order anafranil without prescription sporanox 100 mg drug

  21. Doqikk

    order amoxiclav sale – brand augmentin 375mg buy cymbalta 40mg generic

  22. Ggkufv

    acticlate canada – buy doxycycline online order glucotrol 10mg pills

  23. Zzwwiz

    buy cheap augmentin – buy cymbalta generic order duloxetine 40mg online

  24. Tpgxyr

    semaglutide order online – buy periactin without prescription cyproheptadine us

  25. Idcuri

    purchase tizanidine for sale – buy hydrochlorothiazide 25mg generic hydrochlorothiazide 25 mg cost

  26. Wtrxsd

    buy tadalafil 20mg sale – order cialis 5mg online cheap sildenafil uk

  27. Ubryoe

    viagra 50mg pills for men – generic sildenafil generic tadalafil

  28. Vpkphe

    lipitor 20mg for sale – purchase norvasc without prescription zestril 2.5mg uk

  29. Zsxthg

    lipitor over the counter – buy lisinopril 5mg for sale order lisinopril 2.5mg generic

  30. Jlodls

    order prilosec generic – tenormin 100mg oral atenolol us

Add a review

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