/* Blink Example with switch button This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include #include #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "sdkconfig.h" // GPIO definitions // See ../../esp-idf/components/driver/include/driver/gpio.h #define RED_GPIO GPIO_NUM_3 #define GREEN_GPIO GPIO_NUM_4 #define BLUE_GPIO GPIO_NUM_5 #define EXTERN_BUT GPIO_NUM_1 // BUTTON on GPIO1 #define EXTERN_LED GPIO_NUM_2 // LED on GPIO2 #define EXTERN_BUT_MASK (1ULL< yellow!! vTaskDelay(200 / portTICK_PERIOD_MS); // end loop } }