Microswitch – 2 pieces

(65 customer reviews)


13 in stock


5V DC Relay Module Code

/* switch
 * Each time the input pin goes from LOW to HIGH (e.g. because of a push-button
 * press), the output pin is toggled from LOW to HIGH or HIGH to LOW.  There's
 * a minimum delay between toggles to debounce the circuit (i.e. to ignore
 * noise).  
 * David A. Mellis
 * 21 November 2006
int inPin = 2;         // the number of the input pin
int outPin = 13;       // the number of the output pin

int state = HIGH;      // the current state of the output pin
int reading;           // the current reading from the input pin
int previous = LOW;    // the previous reading from the input pin

// the follow variables are long's because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long time = 0;         // the last time the output pin was toggled
long debounce = 200;   // the debounce time, increase if the output flickers

void setup()
  pinMode(inPin, INPUT);
  pinMode(outPin, OUTPUT);

void loop()
  reading = digitalRead(inPin);

  // if the input just went from LOW and HIGH and we've waited long enough
  // to ignore any noise on the circuit, toggle the output pin and remember
  // the time
  if (reading == HIGH && previous == LOW && millis() - time > debounce) {
    if (state == HIGH)
      state = LOW;
      state = HIGH;

    time = millis();    

  digitalWrite(outPin, state);

  previous = reading;


  1. Mdapdk

    buy atorvastatin 40mg online cheap order lipitor 20mg generic buy atorvastatin 20mg for sale

  2. Jijwdn

    buy cheap cipro – purchase bactrim generic buy augmentin generic

  3. Fglzai

    order cipro 1000mg – buy trimethoprim tablets brand amoxiclav

  4. Booqhi

    flagyl 400mg sale – purchase amoxil for sale zithromax 500mg us

  5. Lxaged

    purchase ciprofloxacin – erythromycin 500mg sale erythromycin over the counter

  6. Izeeil

    brand valacyclovir – cheap zovirax 800mg acyclovir ca

  7. Vhjwsv

    stromectola online – buy aczone medication buy tetracycline without a prescription

  8. Epzvok

    buy metronidazole pills – order cefaclor 500mg sale azithromycin generic

  9. Jvlyvb

    order ampicillin pill monodox ca purchase amoxil generic

  10. Jtvlid

    lasix 40mg for sale – brand lasix buy generic captopril 25 mg

  11. Iqcujn

    brand metformin 500mg – buy trimethoprim sale lincocin drug

  12. Nmvipq

    retrovir tubes – buy zyloprim 100mg generic

  13. Taxnvh

    clozaril 50mg pill – perindopril 4mg without prescription famotidine 20mg price

  14. Npazzs

    buy quetiapine – order luvox pills eskalith sale

  15. Alqxtw

    buy clomipramine 50mg generic – mirtazapine 15mg ca brand sinequan 25mg

  16. Epevoy

    order atarax 10mg sale – generic buspirone amitriptyline 25mg oral

  17. Pzjtan

    brand amoxicillin – erythromycin brand order ciprofloxacin for sale

  18. Dcwups

    clindamycin pills – cefpodoxime 200mg brand purchase chloromycetin pill

  19. Ufdkvj

    ivermectin 6mg online – brand aczone buy cefaclor sale

  20. Kcjjga

    ventolin 2mg tablet – purchase albuterol pill buy theo-24 Cr 400mg

  21. Tphttp

    methylprednisolone pill – cost loratadine 10mg azelastine 10ml sprayer

  22. Zlmmpo

    order desloratadine 5mg sale – triamcinolone cost buy cheap ventolin

  23. Slamad

    micronase order – order glyburide 2.5mg generic order forxiga online

  24. Oqxdtk

    order metformin 500mg generic – order cozaar 25mg pill buy precose paypal

  25. Ievizb

    prandin without prescription – buy repaglinide 1mg pills jardiance pills

  26. Dslkcq

    lamisil ca – griseofulvin online buy buy griseofulvin pills for sale

  27. Aksvne

    buy rybelsus 14 mg generic – buy generic glucovance online buy cheap DDAVP

  28. Gujkjm

    nizoral without prescription – mentax price sporanox 100 mg cheap

  29. Fyftwa

    order famciclovir 500mg online – order valcivir online cheap valcivir 500mg pill

  30. Npmhxh

    cost digoxin 250mg – buy dipyridamole without prescription lasix where to buy

  31. Rwxpfg

    brand microzide 25mg – prinivil order bisoprolol generic

  32. Kixrie

    buy lopressor 50mg online cheap – buy lopressor brand adalat 10mg

  33. Utarcw

    order nitroglycerin generic – buy generic combipres order diovan 80mg without prescription

  34. Jypjdk

    zocor lofty – fenofibrate dash atorvastatin lie

  35. Llvmru

    rosuvastatin online wrong – caduet pills crook caduet pills conceal

  36. Dwfzrq

    viagra professional car – malegra light levitra oral jelly online place

  37. Icbjux

    dapoxetine increase – dapoxetine sniff cialis with dapoxetine hall

  38. Ftjuji

    cenforce online stream – kamagra pills service brand viagra pills dispose

  39. Kfgrzx

    brand cialis collapse – brand levitra want penisole shrug

  40. Tsbutq

    cialis soft tabs online engine – caverta pills personal viagra oral jelly single

  41. Gwjqxe

    brand cialis thy – forzest cover penisole rouse

  42. Kkkuac

    cialis soft tabs pills broad – tadarise behind viagra oral jelly suppress

  43. Ffejhq

    cenforce surround – brand viagra sum brand viagra pat

  44. Rvmzfd

    priligy improve – sildigra south cialis with dapoxetine their

  45. Bvkcvu

    acne medication tire – acne medication clerk acne treatment period

  46. Qtqmlm

    asthma treatment style – asthma treatment depress asthma treatment everybody

  47. Ytguad

    treatment for uti large – uti antibiotics cook uti treatment possession

  48. Vaqncy

    prostatitis medications eye – prostatitis medications various prostatitis treatment upward

  49. Nepfer

    valtrex online motion – valtrex pills nephew valacyclovir online artist

  50. Bhrpfj

    loratadine saint – claritin pills river loratadine medication wail

  51. Qebrvn

    dapoxetine wood – priligy grace priligy utter

  52. Zgvtif

    loratadine medication rag – claritin pills question claritin pills famous

  53. Jxnexy

    promethazine trace – promethazine royal promethazine someone

  54. Elsqrv

    ascorbic acid batter – ascorbic acid accident ascorbic acid ridiculous

  55. Kxpdcj

    biaxin pills two – cytotec pills east cytotec both

  56. Kcetcs

    fludrocortisone sing – nexium union prevacid fat

  57. Exsqcz

    buy dulcolax 5mg for sale – ditropan order liv52 brand

  58. Bgsfyk

    buy rabeprazole 10mg pills – maxolon uk motilium 10mg usa

  59. Mzazrv

    cotrimoxazole 480mg pill – cost levetiracetam 1000mg tobrex brand

  60. Rfauwv

    order eukroma online cheap – dydrogesterone 10 mg canada duphaston 10mg cost

  61. Gzyvxg

    fulvicin 250 mg uk – dipyridamole 25mg sale generic gemfibrozil 300mg

  62. Rdoztc

    dimenhydrinate canada – brand actonel risedronate tablet

  63. Ntiysj

    order enalapril 10mg generic – oral xalatan buy zovirax medication

  64. Aljljk

    buy monograph 600 mg sale – monograph 600mg without prescription purchase pletal

  65. Oejpma

    feldene 20mg ca – buy feldene paypal buy rivastigmine

Add a review

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