board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Gunar Schorcht
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
20 #include <stdint.h>
21 
35 #define BTN0_PIN GPIO9
36 
43 #define BTN0_MODE GPIO_IN_PU
44 
48 #ifndef BTN0_INT_FLANK
49 #define BTN0_INT_FLANK GPIO_FALLING
50 #endif
51 
55 #define BUTTON0_PIN BTN0_PIN
56 
68 #ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
69 
70 #define LED0_PIN GPIO7
71 #define LED0_ACTIVE (1)
73 #else /* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
74 
75 #ifndef WS281X_PARAM_PIN
76 #define WS281X_PARAM_PIN (GPIO7)
77 #endif
78 #ifndef WS281X_PARAM_NUMOF
79 #define WS281X_PARAM_NUMOF (1U)
80 #endif
81 
82 #endif
85 /* include common board definitions as last step */
86 #include "board_common.h"
87 
88 #ifdef __cplusplus
89 extern "C" {
90 #endif
91 
92 #ifdef __cplusplus
93 } /* end extern "C" */
94 #endif
95