#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");
}