This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
digispark:tutorials:rgb [2013/03/29 07:12] PeterMortensen [Programming:] Formatting for readability. |
digispark:tutorials:rgb [2015/06/03 00:23] oscomputing [Programming:] |
||
|---|---|---|---|
| Line 34: | Line 34: | ||
| - | Empty kit bag (or if using a raw PCB, aquire parts) and verify contents. | + | Empty kit bag (or if using a raw PCB, acquire parts) and verify contents. |
| **Note for Kickstarter Backers and Pre-orders:** Headers are not included in each kit bag, but the entire order came with more than enough headers for all kits. | **Note for Kickstarter Backers and Pre-orders:** Headers are not included in each kit bag, but the entire order came with more than enough headers for all kits. | ||
| Line 43: | Line 43: | ||
| [[https://s3.amazonaws.com/digispark/images/m/rgb5.jpg|{{https://s3.amazonaws.com/digispark/images/t/rgb5.jpg}}]] | [[https://s3.amazonaws.com/digispark/images/m/rgb5.jpg|{{https://s3.amazonaws.com/digispark/images/t/rgb5.jpg}}]] | ||
| - | When inserting the LED into the board ensure the longest lead of the LED goes through the hole marked ground - this ensure you ahve the LED oriented properly. Solder the LED leads and clip off the excess. | + | When inserting the LED into the board ensure the longest lead of the LED goes through the hole marked ground - this will ensure you have the LED oriented properly. Solder the LED leads and clip off the excess. |
| [[https://s3.amazonaws.com/digispark/images/m/rgb4.jpg|{{https://s3.amazonaws.com/digispark/images/t/rgb4.jpg}}]] | [[https://s3.amazonaws.com/digispark/images/m/rgb4.jpg|{{https://s3.amazonaws.com/digispark/images/t/rgb4.jpg}}]] | ||
| - | Cut a length of male headers 6 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin. | + | Cut two lengths of male headers, one 6 pins long and another 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin. |
| - | **Tip:** Inseting the headers into a breadboard and then placing the board on top can make this process easier. | + | **Tip:** Inserting the headers into a breadboard and then placing the board on top can make this process easier. |
| **Note:** If you are using stackable headers, use them here instead of the standard male headers. | **Note:** If you are using stackable headers, use them here instead of the standard male headers. | ||
| Line 96: | Line 96: | ||
| **PWM Note:** While the red and green LEDs are connected to pins that support PWM, the blue LED is not - this is because the third PWM pin is used by the USB communications and we figure most will want to use the RGB shield with USB communication. See Examples->DigisparkRGB->DigisparkRGB or Examples->DigisparkUSB->DigiBlink for examples of using software PWM for pin 2 (blue LED). | **PWM Note:** While the red and green LEDs are connected to pins that support PWM, the blue LED is not - this is because the third PWM pin is used by the USB communications and we figure most will want to use the RGB shield with USB communication. See Examples->DigisparkRGB->DigisparkRGB or Examples->DigisparkUSB->DigiBlink for examples of using software PWM for pin 2 (blue LED). | ||
| - | If you are not planning to use USB communication: If you want to connect the blue LED to P4 instead of P2 - flip the shield over and you'll see two solder jumpers, one has a little trace connecting its two pads, the other does't - cut the one with the trace and bridge the other with solder this will disconnect the blue LED from P2 and connect it to P4. | + | If you are not planning to use USB communication: If you want to connect the blue LED to P4 instead of P2 - flip the shield over and you'll see two solder jumpers, one has a little trace connecting its two pads, the other doesn't - cut the one with the trace and bridge the other with solder. This will disconnect the blue LED from P2 and connect it to P4. |
| - | In the Arduiono IDE, take a look at the Examples -> DigisparkRGB -> DigisparkRGB example for more advanced usage. When using that example you must set your board type as Digispark (Tiny Core) for it to work. | + | In the Arduino IDE, take a look at the Examples -> DigisparkRGB -> DigisparkRGB example for more advanced usage. When using that example you must set your board type as Digispark (Tiny Core) for it to work. |