#include "FastLED.h" #define NUM_LEDS 64 #define DATA_PIN 2 CRGB leds[NUM_LEDS]; void setup() { Serial.begin(115200); FastLED.addLeds(leds, NUM_LEDS); FastLED.setBrightness(64); fill_solid(leds, NUM_LEDS, CRGB::Black); } void loop() { // unsigned k_color[] = {0xf2f3f4, 0x222222, 0xf3c300, 0x875692, 0xf38400, 0xa1caf1, 0xbe0032, 0xc2b280, 0x848482, 0x008856}; //kelly1 // for(int i = 0; i<10; i++) { // leds[i] = k_color[i]; // } // unsigned k_color[] = {0xf2f3f4, 0x222222, 0xf3c300, 0x875692, 0xf38400, 0xbe0032, 0x008856, 0xe68fac, 0x0067a5, 0xb3446c}; //kelly2 // for(int i = 0; i<10; i++) { // leds[i] = k_color[i]; // } // unsigned s_color[] = {0x111111, 0xe6194B, 0xf58231, 0xffe119, 0x3cb44b, 0x42d4f4, 0x4363d8, 0x911eb4, 0xf032e6, 0x919191}; //sasha // for(int i = 0; i<10; i++) { // leds[i] = s_color[i]; // } // unsigned c_color[] = {0x111111, 0x8e063b, 0xd33f6a, 0xef9708, 0x11c638, 0x0fcfc0, 0x023fa5, 0x4a6fe3, 0xf79cd4, 0x919191}; //statistics // for(int i = 0; i<10; i++) { // leds[i] = c_color[i]; // } // unsigned d_color[] = {0x111111, 0xff0000, 0xff8000, 0xffff00, 0x00ff80, 0x00ffff, 0x007fff, 0xff00ff, 0xff0080, 0x919191}; //distinct // for(int i = 0; i<10; i++) { // leds[i] = d_color[i]; // } // unsigned m_color[] = {0x111111, 0xff0000, 0xffd700, 0x006400, 0x00ff00, 0x00ffff, 0x191970, 0xff00ff, 0xffb6c1, 0x919191}; //mokole // for(int i = 0; i<10; i++) { // leds[i] = m_color[i]; // } CRGB rgb; CHSV f_color[] = { CHSV(0, 0, 64), CHSV(0, 255, 192), CHSV(32, 255, 255), CHSV(64, 255, 255), CHSV(96, 255, 255), CHSV(138, 255, 255), CHSV(160, 255, 255), CHSV(180, 255, 255), CHSV(214, 255, 255), CHSV(0, 0, 192)};//fastled for (int i = 0; i < 10; i++) { leds[i]=f_color[i]; hsv2rgb_rainbow( f_color[i], rgb); //convert HSV to RGB //print out HSV and RGB values Serial.print(" HSV: "); Serial.print(f_color[i].h); Serial.print(", "); Serial.print(f_color[i].s); Serial.print(", "); Serial.println(f_color[i].v); Serial.print(" RGB: "); Serial.print(rgb.r); Serial.print(", "); Serial.print(rgb.g); Serial.print(", "); Serial.println(rgb.b); } FastLED.show(); delay (6000); }