Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Yegor Yefremov
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
29
#include <stdint.h>
30
39
#if MODULE_ESP32_TTGO_T_BEAM_V1_0
40
#define BTN0_PIN GPIO38
41
#else
42
#define BTN0_PIN GPIO39
43
#endif
44
51
#define BTN0_MODE GPIO_IN
52
56
#define BUTTON0_PIN BTN0_PIN
62
#ifndef BTN0_INT_FLANK
63
#define BTN0_INT_FLANK GPIO_FALLING
64
#endif
65
71
#ifndef MODULE_ESP32_TTGO_T_BEAM_V1_0
72
#define LED0_PIN GPIO14
73
#define LED0_ACTIVE (1)
74
#endif
83
#define SX127X_PARAM_SPI_NSS GPIO18
84
#define SX127X_PARAM_RESET GPIO23
85
#define SX127X_PARAM_DIO0 GPIO26
86
#define SX127X_PARAM_DIO1 GPIO_UNDEF
/* Pin is not connected to the LoRa chip directly */
87
#define SX127X_PARAM_DIO2 GPIO_UNDEF
/* Pin is not connected to the LoRa chip directly */
88
#define SX127X_PARAM_DIO3 GPIO_UNDEF
91
/* include common board definitions as last step */
92
#include "board_common.h"
93
94
#ifdef __cplusplus
95
extern
"C"
{
96
#endif
97
98
#ifdef __cplusplus
99
}
/* end extern "C" */
100
#endif
101
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1