#define LED_TYPE NEO_GRB + NEO_KHZ800 // Loại của LED NeoPixel, ở đây là loại RGB với tần số NEO_KHZ800. Adafruit_NeoPixel strip(NUM_LEDS, LED_PIN, LED_TYPE); // Khởi tạo đối tượng dải đèn NeoPixel // ...
Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached to pin 2. const int buttonPin = 2; // the number of the pushbutton pin const int ledPin = ...