|
#define PIN 6 // On Trinket or Gemma, suggest changing this to 1
#define PIN2 5 // On Trinket or Gemma, suggest changing this to 1
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels2(NUMPIXELS, PIN2, NEO_GRB + NEO_KHZ800);
pixels.setPixelColor(i, pixels.Color(0, 150, 0));
pixels2.setPixelColor(i, pixels2.Color(0, 150, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
pixels2.show(); // Send the updated pixel colors to the hardware.
类似这样,用D6 D5创建两个,编译能通过,但实际行不行,你可以试试 |
|