RGB LED Module

(24 customer reviews)

$4.25

5 in stock

Description

RGB LED Module Code


/* SETUP

RGB LED         Arduino
R         -     D9
G         -     D10
B         -     D11
GND       -     GND
*/
 
int redpin = 9; // select the pin for the red LED
int greenpin = 10 ;// select the pin for the green LED
int bluepin = 11; // select the pin for the blue LED
int val;

void setup () {
  pinMode (redpin, OUTPUT);
  pinMode (bluepin, OUTPUT);
  pinMode (greenpin, OUTPUT);
  Serial.begin (9600);
}

void loop ()
{
  for (val = 255; val> 0; val --)
  {
    analogWrite (11, val);
    analogWrite (10, 255-val);
    analogWrite (9, 128-val);
    delay (10);
    Serial.println (val, DEC);
  }
  for (val = 0; val <255; val ++)
  {
    analogWrite (11, val);
    analogWrite (10, 255-val);
    analogWrite (9, 128-val);
    delay (10);
    Serial.println (val, DEC);
  }
}

Additional information

Weight 0.002 kg
  1. Okvoau

    order atorvastatin 20mg online lipitor 40mg us lipitor 40mg over the counter

  2. Kswcqg

    cipro 500mg price – oral bactrim 480mg augmentin pill

  3. Xxaotp

    buy ciprofloxacin pill – brand cephalexin 500mg order augmentin online

  4. Gftsev

    order ciplox 500mg generic – buy generic ciprofloxacin for sale buy erythromycin without a prescription

  5. Nflluw

    order metronidazole 200mg generic – order zithromax 500mg pills azithromycin 250mg uk

  6. Ohfsgx

    stromectol 3 mg dosage – axetil order buy tetracycline 500mg for sale

  7. Lievqn

    buy valacyclovir pills for sale – buy nemasole generic order acyclovir online

  8. Rrqlda

    ampicillin pills order doxycycline generic oral amoxil

  9. Uqyzdy

    buy furosemide pills for sale – capoten 25 mg oral captopril 25mg pill

  10. Uicjcy

    purchase glucophage for sale – purchase baycip generic buy generic lincomycin over the counter

  11. Owivsr

    buy pill generic zidovudine – cheap epivir 100mg buy generic zyloprim online

  12. Ebbqwn

    order clozapine 50mg generic – famotidine for sale order generic pepcid 20mg

  13. Cpkmsa

    buy quetiapine for sale – fluvoxamine tablet buy eskalith paypal

  14. Uynrrt

    anafranil sale – citalopram 20mg us buy sinequan 25mg online

  15. Glbhar

    order hydroxyzine online – buspirone 5mg generic order generic endep 10mg

  16. Qbqxam

    purchase amoxiclav online cheap – buy cheap generic septra cipro pills

  17. Asjabm

    purchase amoxil pills – buy amoxicillin 500mg sale order generic cipro 500mg

  18. Kpfvit

    zithromax pills – ofloxacin 200mg for sale ciprofloxacin 500 mg over the counter

  19. Esfxfc

    buy cleocin 300mg online – suprax 100mg pill buy chloramphenicol tablets

  20. Kdqacx

    stromectol uk – levofloxacin price buy generic cefaclor for sale

  21. Vghwld

    buy albuterol generic – buy theo-24 Cr sale theo-24 Cr generic

  22. Uarimr

    depo-medrol pills canada – loratadine canada generic azelastine 10 ml

  23. Zfvsry

    brand desloratadine 5mg – albuterol 2mg cost order ventolin pill

  24. Luiodb

    micronase order online – buy micronase 5mg pills order dapagliflozin generic

Add a review

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