Newsletter

Melden Sie sich jetzt für den Newsletter an und profitieren Sie von Aktionen, Gutscheinen & Verlosungen.
 

Name:


Email:


Ok

RGB LED

RGB LED - Miscellaneous
Brand: Various
Product Code: AC-1141
Availability: In Stock
Price: 3,45€
Incl. 0,55€ VAT excl. shipping costs
Qty:        

RGB LED

    • the use of plug-in full-color LED
    • RGB trichromatic limiting resistor to prevent burnout
    • through the PWM adjusting three primary colors can be mixed to obtain different colors
    • with a variety of single-chip interface
    • the working voltage: 5V
    • LED drive mode: common cathode driver

     

    Code Sample:

    int redpin = 11; // select the pin for the red LEDint bluepin = 10; // select the pin for the blue LEDint greenpin = 9 ;// select the pin for the green LEDint 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);}}

    Write a review

    Your Name:


    Your Review:Note: HTML is not translated!

    Rating: Bad           Good

    Enter the code in the box below:



    Live Help