#include <FastLED.h>
#include <OneButton.h>

CRGB leds[1];

OneButton button1(15,true);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  FastLED.addLeds<NEOPIXEL, 13>(leds, 1); 
  button1.attachClick(click1);
  
}

void loop() {
  button1.tick();
  leds[0]=CRGB::Green;
  FastLED.show();
  // Serial.print("Hello, ESP32! Green ");
 //  Serial.println(leds[0]);
   
  // put your main code here, to run repeatedly:
  //delay(300); // this speeds up the simulation
  leds[0]=CRGB::Red;
  FastLED.show();
 // Serial.print("Hello, ESP32! Red  ");
 //  Serial.println(leds[0]);
  // put your main code here, to run repeatedly:
  //delay(300); // this speeds up the simulation
  if(digitalRead(15)){
      Serial.println("Heigh");
  }else{
     Serial.println("Low");
  }
   
}
void click1(){
  Serial.println("pringt signl button");
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
rgb1:VDD
rgb1:DOUT
rgb1:VSS
rgb1:DIN
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r