Microswitch – 2 pieces

(118 customer reviews)

$4.90

13 in stock

Description

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;
    else
      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

  66. Ilybis

    buy generic nootropil 800 mg – nootropil 800mg cost sinemet ca

  67. Fppbll

    hydrea online buy – order generic ethionamide order methocarbamol online

  68. Hamcrn

    buy generic divalproex 250mg – cordarone online generic topiramate 100mg

  69. Roiwer

    disopyramide phosphate tablets – buy lamictal no prescription chlorpromazine cost

  70. Ryeymf

    buy cheap cyclophosphamide – buy dramamine 50mg order trimetazidine pills

  71. Ugbdjd

    buy cheap aldactone – dilantin 100 mg generic order naltrexone 50mg pills

  72. Kzktmy

    cyclobenzaprine for sale – buy enalapril paypal buy vasotec generic

  73. Rzpxaf

    buy zofran no prescription – oxybutynin for sale online buy requip 1mg pills

  74. Dvndsi

    buy generic ascorbic acid over the counter – oral isordil order compro generic

  75. Flbdkc

    order durex gel sale – order durex gel sale xalatan cheap

  76. Ahpsws

    minoxidil online buy – purchase finpecia without prescription propecia 5mg for sale

  77. Mybobl

    buy generic leflunomide for sale – risedronate where to buy purchase cartidin generic

  78. Sorbsb

    verapamil 120mg cost – diltiazem without prescription tenoretic sale

  79. Hlplep

    where to buy atenolol without a prescription – carvedilol canada buy generic carvedilol for sale

  80. Ulebsx

    buy atorvastatin without a prescription – vasotec 5mg for sale buy bystolic pills

  81. Ddobfz

    cheap gasex generic – purchase gasex without prescription buy diabecon pills

  82. Nyguta

    buy lasuna generic – buy diarex paypal himcolin where to buy

  83. Ocohye

    where to buy noroxin without a prescription – flutamide canada confido price

  84. Wwldks

    purchase speman generic – himplasia canada cheap finasteride online

  85. Yqgvkj

    order finasteride for sale – uroxatral 10mg over the counter uroxatral 10mg for sale

  86. Hlwypc

    buy hytrin 1mg generic – avodart price priligy order

  87. Hfzhfp

    buy oxcarbazepine without prescription – pirfenex price synthroid 150mcg pills

  88. Glntgr

    purchase lactulose generic – duphalac bottless betahistine 16 mg usa

  89. Hunlxq

    purchase imusporin eye drops – order imusporin online colchicine drug

  90. Fcvhya

    order deflazacort pill – oral calcort buy brimonidine paypal

  91. Lpeofz

    how to get gabapentin without a prescription – cheap azulfidine 500 mg purchase sulfasalazine online cheap

  92. Kstzyr

    order probenecid 500 mg sale – buy generic probenecid for sale carbamazepine online

  93. Cdrdex

    order colospa 135 mg online cheap – buy cilostazol 100 mg online pletal 100mg over the counter

  94. Fytiyd

    buy celecoxib 200mg pill – buy generic urispas for sale indocin 50mg usa

  95. Immotssef

    better business bureau online pharmacy priligy 7 h urinary bladder to 411 h uveal tract of the eye, with most matrices showing T1 2 values less than 40 h

  96. Mbrnsn

    voltaren 50mg drug – voltaren 100mg uk aspirin over the counter

  97. Kqsxzy

    cheap generic rumalaya – buy shallaki paypal oral elavil 50mg

  98. Wmjydi

    purchase mestinon for sale – buy imuran online imuran tablet

  99. Ymmgth

    voveran for sale online – cheap generic diclofenac buy nimotop tablets

  100. Bzuvoj

    buy baclofen 10mg online cheap – lioresal without prescription order piroxicam 20mg

  101. Zxpskt

    cost mobic 7.5mg – mobic 15mg tablet buy toradol no prescription

  102. Eufwzv

    buy periactin 4 mg for sale – cyproheptadine over the counter tizanidine sale

  103. Cllyaa

    cheap artane pills – emulgel purchase online order cheap voltaren gel

  104. Abncco

    isotretinoin buy online – order dapsone generic buy deltasone 40mg generic

  105. Whaftc

    buy cefdinir 300mg – order omnicef 300 mg online cheap buy clindamycin generic

  106. Jszpom

    prednisone 20mg cheap – buy deltasone online cheap buy generic zovirax

  107. Frfzbg

    permethrin brand – order tretinoin generic buy tretinoin without prescription

  108. Mwhlib

    flagyl medication – buy cenforce generic purchase cenforce sale

  109. Xuhelf

    betamethasone 20 gm oral – buy cheap generic betnovate monobenzone buy online

  110. Cqhsfa

    amoxiclav usa – cheap synthroid generic synthroid 75mcg canada

  111. Lbxeah

    order generic cleocin 300mg – order indomethacin 75mg online cheap purchase indomethacin sale

  112. Mlvtqd

    order hyzaar online – buy cozaar 50mg online cheap order cephalexin 125mg

  113. Lcwzex

    order eurax – crotamiton sale aczone online buy

  114. Hsquat

    buy bupropion 150mg for sale – cost xenical 60mg buy generic shuddha guggulu online

  115. Ejxupj

    order modafinil online cheap – buy phenergan paypal buy cheap meloset

  116. Kpbdnk

    prometrium over the counter – order progesterone 200mg online buy clomiphene cheap

  117. Migmie

    buy generic xeloda 500 mg – naproxen 250mg us danazol cheap

  118. Hccirp

    buy generic aygestin 5 mg – lumigan cost yasmin order

Add a review

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