|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | +#include "soc/soc_caps.h" |
| 6 | + |
| 7 | +#define HELTEC_CAPSULE_SENSOR_V3 true |
| 8 | + |
| 9 | +#define USB_VID 0x303a |
| 10 | +#define USB_PID 0x1001 |
| 11 | + |
| 12 | + |
| 13 | +// Some boards have too low voltage on this pin (board design bug) |
| 14 | +// Use different pin with 3V and connect with 48 |
| 15 | +// and change this setup for the chosen pin (for example 38) |
| 16 | +static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+48; |
| 17 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 18 | +#define LED_BUILTIN LED_BUILTIN |
| 19 | +#define RGB_BUILTIN LED_BUILTIN |
| 20 | +#define RGB_BRIGHTNESS 64 |
| 21 | + |
| 22 | + |
| 23 | +static const uint8_t TX = 43; |
| 24 | +static const uint8_t RX = 44; |
| 25 | + |
| 26 | +static const uint8_t SDA = 41; |
| 27 | +static const uint8_t SCL = 42; |
| 28 | + |
| 29 | +static const uint8_t SS = 8; |
| 30 | +static const uint8_t MOSI = 10; |
| 31 | +static const uint8_t MISO = 11; |
| 32 | +static const uint8_t SCK = 9; |
| 33 | + |
| 34 | +static const uint8_t A0 = 1; |
| 35 | +static const uint8_t A1 = 2; |
| 36 | +static const uint8_t A2 = 3; |
| 37 | +static const uint8_t A3 = 4; |
| 38 | +static const uint8_t A4 = 5; |
| 39 | +static const uint8_t A5 = 6; |
| 40 | +static const uint8_t A6 = 7; |
| 41 | +static const uint8_t A7 = 8; |
| 42 | +static const uint8_t A8 = 9; |
| 43 | +static const uint8_t A9 = 10; |
| 44 | +static const uint8_t A10 = 11; |
| 45 | +static const uint8_t A11 = 12; |
| 46 | +static const uint8_t A12 = 13; |
| 47 | +static const uint8_t A13 = 14; |
| 48 | +static const uint8_t A14 = 15; |
| 49 | +static const uint8_t A15 = 16; |
| 50 | +static const uint8_t A16 = 17; |
| 51 | +static const uint8_t A17 = 18; |
| 52 | +static const uint8_t A18 = 19; |
| 53 | +static const uint8_t A19 = 20; |
| 54 | + |
| 55 | +static const uint8_t T1 = 1; |
| 56 | +static const uint8_t T2 = 2; |
| 57 | +static const uint8_t T3 = 3; |
| 58 | +static const uint8_t T4 = 4; |
| 59 | +static const uint8_t T5 = 5; |
| 60 | +static const uint8_t T6 = 6; |
| 61 | +static const uint8_t T7 = 7; |
| 62 | +static const uint8_t T8 = 8; |
| 63 | +static const uint8_t T9 = 9; |
| 64 | +static const uint8_t T10 = 10; |
| 65 | +static const uint8_t T11 = 11; |
| 66 | +static const uint8_t T12 = 12; |
| 67 | +static const uint8_t T13 = 13; |
| 68 | +static const uint8_t T14 = 14; |
| 69 | + |
| 70 | +static const uint8_t Vext = 21; |
| 71 | +static const uint8_t LED0 = 33; |
| 72 | +static const uint8_t LED1 = 34; |
| 73 | +static const uint8_t USER_BUTTON = 18; |
| 74 | + |
| 75 | +static const uint8_t GPS_RX_PIN = 5; |
| 76 | +static const uint8_t GPS_TX_PIN = 4; |
| 77 | +static const uint8_t GPS_RESET_PIN = 3; |
| 78 | +static const uint8_t GPS_PPS_PIN = 1; |
| 79 | + |
| 80 | +static const uint8_t ADC_BATTERY_PIN = 7; |
| 81 | +static const uint8_t ADC_BATTERY_CTRL_PIN = 36; |
| 82 | + |
| 83 | +static const uint8_t RST_LoRa = 12; |
| 84 | +static const uint8_t BUSY_LoRa = 13; |
| 85 | +static const uint8_t DIO0 = 14; |
| 86 | + |
| 87 | +#endif /* Pins_Arduino_h */ |
0 commit comments