Skip to content

Inconsistent RGB LED pin numbers #91

@imisaacwu

Description

@imisaacwu

In Intro to Arduino / Output / L6: RGB LEDs, the pin values for the blue and green legs swap around a little bit.

For example, in Making the Circuit, the visual with the Arduino board shows the blue leg hooked up to Pin 5 and the green leg to Pin 3, but in the circuit diagram right next to it, the pins are swapped. Another would be in Writing the Code, where it says:

Recall that the embedded red LED is hooked up to Pin 6, the blue LED to Pin 5, and the green LED to Pin 3.

Then later in the coding portion, it has the pins swapped again:

const int RGB_RED_LED_PIN = 6;   // indicated by orange wire
const int RGB_GREEN_LED_PIN = 5; // indicated by green wire
const int RGB_BLUE_LED_PIN = 3;  // indicated by blue wire

Adding to the confusion a bit may be the difference in legs, the diagram for the Common Cathode LED has the legs in order as R, -, G, B, but the wire colors on the Arduino board diagrams (like in Making the Circuit) has wire colors in order as Orange, Black, Blue, Green.

Hope this makes sense!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions