EasyManua.ls Logo

adafruit learning system Trinket - More

Default Icon
48 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
More...
We also know the following libraries work:
Adafruit NeoPixel (http://adafru.it/aZU) - control up to ~150 Neopixels via a Trinket!
SoftwareSerial - the built in SoftSerial library can (at least) transmit data on any digital
pin.
More as we do more testing and verification!
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
for (int i=0; i<256; i++) {
analogWrite(led, i); // PWM the LED from 0 to 255 (max)
delay(5);
}
for (int i=255; i>=0; i--) {
analogWrite(led, i); // PWM the LED from 255 (max) to 0
delay(5);
}
}
© Adafruit
Industries
https://learn.adafruit.com/introducing-trinket Page 28 of 48

Related product manuals