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
* SPDX-FileCopyrightText: 2023 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
16
17
#include <stdint.h>
18
23
32
#define BTN0_PIN GPIO9
33
40
#define BTN0_MODE GPIO_IN_PU
41
45
#ifndef BTN0_INT_FLANK
46
#define BTN0_INT_FLANK GPIO_FALLING
47
#endif
48
52
#define BUTTON0_PIN BTN0_PIN
53
55
65
#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
66
67
#define LED0_PIN GPIO7
68
#define LED0_ACTIVE (1)
69
70
#else
/* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
71
72
#ifndef WS281X_PARAM_PIN
73
#define WS281X_PARAM_PIN (GPIO7)
74
#endif
75
#ifndef WS281X_PARAM_NUMOF
76
#define WS281X_PARAM_NUMOF (1U)
77
#endif
78
79
#endif
81
82
/* include common board definitions as last step */
83
#include "board_common.h"
84
85
#ifdef __cplusplus
86
extern
"C"
{
87
#endif
88
89
#ifdef __cplusplus
90
}
/* end extern "C" */
91
#endif
92
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2