File tree Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Original file line number Diff line number Diff line change 1+ #ifndef Pins_Arduino_h
2+ #define Pins_Arduino_h
3+
4+ #include <stdint.h>
5+
6+ #define USB_VID 0x2886
7+ #define USB_PID 0x0059
8+
9+ // GPIO48 Reference: https://github.com/espressif/arduino-esp32/pull/8600
10+
11+ // The default Wire will be mapped to Screen and Sensors
12+ static const uint8_t SDA = 47 ;
13+ static const uint8_t SCL = 48 ;
14+
15+ // Default SPI will be mapped to Radio
16+ static const uint8_t MISO = 8 ;
17+ static const uint8_t SCK = 7 ;
18+ static const uint8_t MOSI = 9 ;
19+ static const uint8_t SS = 5 ;
20+
21+ #endif /* Pins_Arduino_h */
Original file line number Diff line number Diff line change 1+ [env:seeed-xiao-s3-diy-header]
2+ extends = esp32s3_base
3+ board = seeed_xiao_esp32s3
4+ framework = arduino
5+ upload_protocol = esptool
6+ upload_speed = 921600
7+
8+ board_build.partitions = default_8MB.csv
9+ board_build.flash_mode = dio
10+ board_build.flash_size = 8MB
11+
12+ build_unflags =
13+ ${esp32s3_base.build_unflags}
14+ -DARDUINO_USB_MODE =1
15+
16+ build_flags =
17+ ${esp32s3_base.build_flags}
18+ -D PRIVATE_HW
19+ -D BOARD_HAS_PSRAM
20+ -D ARDUINO_USB_MODE =0
21+ -I variants/esp32s3/diy/seeed_xiao_esp32s3_diy_header
22+
23+ lib_deps =
24+ ${esp32s3_base.lib_deps}
Original file line number Diff line number Diff line change 1+ /*
2+ Board Information: https://www.seeedstudio.com/XIAO-ESP32S3-p-5627.html
3+ Expansion Board Infomation : https://www.seeedstudio.com/Wio-SX1262-for-XIAO-p-6379.html
4+ L76K GPS Module Information : https://www.seeedstudio.com/L76K-GNSS-Module-for-Seeed-Studio-XIAO-p-5864.html
5+ */
6+
7+ #define LED_PIN 48
8+ #define LED_STATE_ON 1 // State when LED is lit
9+
10+ #define BUTTON_PIN 21 // This is the Program Button
11+ #define BUTTON_NEED_PULLUP
12+
13+ #define BATTERY_PIN -1
14+ #define ADC_CHANNEL ADC1_GPIO1_CHANNEL
15+ #define BATTERY_SENSE_RESOLUTION_BITS 12
16+
17+ /*Warning:
18+ https://www.seeedstudio.com/L76K-GNSS-Module-for-Seeed-Studio-XIAO-p-5864.html
19+ L76K Expansion Board can not directly used, L76K Reset Pin needs to override or physically remove it,
20+ otherwise it will conflict with the SPI pins
21+ */
22+ #define GPS_L76K
23+ #ifdef GPS_L76K
24+ #define GPS_RX_PIN 44
25+ #define GPS_TX_PIN 43
26+ #define HAS_GPS 1
27+ #define GPS_BAUDRATE 9600
28+ #define GPS_THREAD_INTERVAL 50
29+ #define PIN_SERIAL1_RX PIN_GPS_TX
30+ #define PIN_SERIAL1_TX PIN_GPS_RX
31+ #define PIN_GPS_STANDBY 1
32+ #endif
33+
34+ #define I2C_SDA 5
35+ #define I2C_SCL 6
36+
37+ // XIAO S3 LORA module
38+ #define USE_SX1262
39+
40+ #define LORA_MISO 8
41+ #define LORA_SCK 7
42+ #define LORA_MOSI 9
43+ #define LORA_CS 5
44+
45+ #define LORA_RESET 3
46+ #define LORA_DIO1 2
47+
48+ #define LORA_DIO2 6
49+
50+ #ifdef USE_SX1262
51+ #define SX126X_CS LORA_CS
52+ #define SX126X_DIO1 LORA_DIO1
53+ #define SX126X_BUSY 4
54+ #define SX126X_RESET LORA_RESET
55+
56+ // DIO2 controlls an antenna switch and the TCXO voltage is controlled by DIO3
57+ #define SX126X_DIO2_AS_RF_SWITCH
58+ #define SX126X_RXEN 6
59+ #define SX126X_TXEN RADIOLIB_NC
60+ #define SX126X_DIO3_TCXO_VOLTAGE 1.8
61+ #endif
You can’t perform that action at this time.
0 commit comments