#include <FastLED.h> 

#define NUM_LEDs 7
#define LED_PIN 13
#define COLOR_ORDER GRB
#define BRIGHTNESS 255

CRGB leds[NUM_LEDs];

DEFINE_GRADIENT_PALETTE (heatmap_gp){
	0, 19,26,64,
	42, 88,116,188,
	85, 121,190,217,
	127, 164,203,217,
	170, 208,211,217,
	212, 225,226,229,
	255, 242,242,242
};

CRGBPalette16 mypal = heatmap_gp;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDs);
  FastLED.setBrightness(BRIGHTNESS);
}

void loop() {
  // put your main code here, to run repeatedly:
  ///delay(10); // this speeds up the simulation

  fill_palette(leds, NUM_LEDs, 0, 255 / NUM_LEDs, mypal, BRIGHTNESS, LINEARBLEND);
  FastLED.show();
}