
Digital 3 - this pin can also be used as a PWM output pin using analogWrite().TX - also known as Digital #1, this is the hardware serial output pin.RX - also known as Digital #0, this is the hardware serial input pin.You can find more info for Trinket pinout in official Adafruit site here. Mounting holes, you can easily attach it to breadboard or plug it in your own circuit board!.Works with 99% of existing Arduino sketches (anything that doesn't use more than 28K, and doesn't require pins #2 and #7).
Reset button for entering the bootloader or restarting the program. On-board green power LED and red LED at pin #13. Power with either USB or external output (such as a battery) - it'll automatically switch over. Up to 16V input, reverse-polarity protection, thermal and current-limit protection. On-board 5.0V power regulator with 150mA output capability and ultra-low dropout.
Micro-USB jack for power and code uploading. Fill along the length of the strip in various colors.ĪnalogWrite( LED_SOLO_PIN, LED_SOLO_BRIGHTNESS ) ĬolorWipe(strip.Color(125, 255, 255), 40) // RedĬolorWipe(strip. loop() function - runs repeatedly as long as board is on. tBrightness(30) // Set BRIGHTNESS to about 1/5 (max = 255) Strip.begin() // INITIALIZE NeoPixel strip object (REQUIRED) Any other board, you can remove this part (but no harm leaving it): These lines are specifically to support the Adafruit Trinket 5V 16 MHz. setup() function - runs once at startup. #include // Required for 16 MHz Adafruit TrinketĪdafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800) It looks like the Arduino cant handle all 3 color in rgb set?
And the rainbow funktion works perfectly too. However when i only change it to one color (0, 0, 255), it works perfectly. When i set the color on all rgb (125, 146, 255) the programme crashes and restart again or sometimes its just stuck. I copied the colorWipe funktion from the Neopixel strandtest.