Arduino pin 11 to Trinket 0, Arduino pin 10 to Trinket RST, Arduino 5V to Trinket BAT+. int STrigger = 0 // This tells us if the sensor interupt was triggered. Here is how I made the first version using an Adafruit Trinket. If you want to use the USB 5V power for something, like charging a battery, or if you need more than 150mA of current (this pin can. This input is reverse-polarity protected. If you have a 5V trinket, 5.5V or higher is suggested. It is connected to the USB ground and the power regulator, etc. If you have a 3V Trinket, you'll want at least 3.5V input to get a good 3.3V output. GND is the common ground pin, used for logic and power. The instructions for the strip include a Trinket 5V - which has been discontinued in favor of the Press J to jump to the feed. This input is reverse-polarity protected. We have some Adafruit 5V LED white and RGB strips. If you have a 5V Pro Trinket, 5.5V or higher is suggested. 64 total options are avalable //code by Richard Albritton #include #include // Interupt Code start #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #endif #ifndef sbi #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #endif // Interupt Code end #define PIN 0 #define Sensor 1 #define C_BUTTON 4 #define P_BUTTON 2 #define Pixels 24 Adafruit_NeoPixel strip = Adafruit_NeoPixel ( Pixels, PIN, NEO_GRB + NEO_KHZ800 ) int C_MODE = 4 // Current color mode. 3V Pro Trinket, you'll want at least 3.5V input to get a good 3.3V output. For this project, youll need: -an Adafruit Trinket 5v Controller -a 24 LED Neopixel Compatible LED ring -a single Neopixel Compatible LED (I cut mine from an. Color and Patern Mode selector for NeoPixels //Uses C_BUTTON to sycle through 9 colors and P_BUTTON to select any of the 8 patern sequanses. PDF for Pro Trinket 5V PrettyPins Diagram ( PDF for Pro Trinket 3V PrettyPins Diagram ( There are two versions of the Pro Trinket: 3V and 5V. The Pro Trinket 5V uses the Atmega328P chip, which is the same core chip in the Arduino UNO/Duemilanove/Mini/etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |