Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
18
#ifndef BOARD_H
19
#define BOARD_H
20
21
#include <stdint.h>
22
36
#define BTN0_PIN GPIO9
37
44
#define BTN0_MODE GPIO_IN_PU
45
49
#ifndef BTN0_INT_FLANK
50
#define BTN0_INT_FLANK GPIO_FALLING
51
#endif
52
56
#define BUTTON0_PIN BTN0_PIN
57
69
#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
70
71
#define LED0_PIN GPIO7
72
#define LED0_ACTIVE (1)
74
#else
/* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
75
76
#ifndef WS281X_PARAM_PIN
77
#define WS281X_PARAM_PIN (GPIO7)
78
#endif
79
#ifndef WS281X_PARAM_NUMOF
80
#define WS281X_PARAM_NUMOF (1U)
81
#endif
82
83
#endif
86
/* include common board definitions as last step */
87
#include "board_common.h"
88
89
#ifdef __cplusplus
90
extern
"C"
{
91
#endif
92
93
#ifdef __cplusplus
94
}
/* end extern "C" */
95
#endif
96
97
#endif
/* BOARD_H */
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8