Difference: RGBLEDs (3 vs. 4)

Revision 42018-03-06 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

RGB LEDs

Introduction

Line: 21 to 21
 
  • red -> gpio 18
  • green -> gpio 17
  • blue -> gpio 22
Changed:
<
<
This cabling is of course only true for the first 3 devices (not the WS2812). To check the device we can temporarily connect these pins to Vcc (make sure the current limiting resistor is there, either on the breakout board or externally added by you) in which case we should see the corresponding color come up on the LED. Once connected to the gpio pins we can start programming.
>
>
This cabling is of course only true for the KY-009 and the "standard rgd LED". In contrast to these devices which have a common cathode the LilyPad has a common anode and must be connect to Vcc instead of Gnd. The WS2812 is complete different and is programmed with a serial protocol. To check the device we can temporarily connect these pins to Vcc (or ground in case of the LilyPad, make sure the current limiting resistor is there, either on the breakout board or externally added by you) in which case we should see the corresponding color come up on the LED. Once connected to the gpio pins we can start programming.
  Making a LED light up is one of the most simple programming exercises possible and therefore ideally suited to get us going with Python programming.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback