File tree Expand file tree Collapse file tree 3 files changed +103
-0
lines changed
variants/esp32c3/diy/esp32c3_super_mini_tenstar Expand file tree Collapse file tree 3 files changed +103
-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+ static const uint8_t TX = 21 ;
7+ static const uint8_t RX = 20 ;
8+
9+ static const uint8_t SDA = 8 ;
10+ static const uint8_t SCL = 9 ;
11+
12+ static const uint8_t SS = 7 ;
13+ static const uint8_t MOSI = 6 ;
14+ static const uint8_t MISO = 5 ;
15+ static const uint8_t SCK = 4 ;
16+
17+ static const uint8_t A0 = 0 ;
18+ static const uint8_t A1 = 1 ;
19+ static const uint8_t A2 = 2 ;
20+ static const uint8_t A3 = 3 ;
21+ static const uint8_t A4 = 4 ;
22+ static const uint8_t A5 = 5 ;
23+
24+ #endif /* Pins_Arduino_h */
Original file line number Diff line number Diff line change 1+ ; TenStar ESP32 C3 Super Mini Development Board
2+ ; https://forum.arduino.cc/t/esp32-c3-supermini-pinout/1189850
3+ ; Note: Pinout is different than Espressif ESP32-C3 Super Mini
4+
5+ [env:esp32c3_super_mini_tenstar]
6+ extends = esp32c3_base
7+ board = esp32-c3-devkitm-1
8+ board_build.mcu = esp32c3
9+ board_build.f_cpu = 160000000L
10+ build_flags =
11+ ${esp32_base.build_flags}
12+ -D PRIVATE_HW
13+ -I variants/esp32c3/diy/esp32c3_super_mini_tenstar
14+ -D ARDUINO_USB_MODE =1
15+ -D ARDUINO_USB_CDC_ON_BOOT =1
16+ board_level = extra
Original file line number Diff line number Diff line change 1+ #ifndef _VARIANT_ESP32C3_SUPER_MINI_TENSTAR_
2+ #define _VARIANT_ESP32C3_SUPER_MINI_TENSTAR_
3+
4+ /*----------------------------------------------------------------------------
5+ * Headers
6+ *----------------------------------------------------------------------------*/
7+
8+ #ifdef __cplusplus
9+ extern "C" {
10+ #endif // __cplusplus
11+
12+ // I2C (Wire) & OLED
13+ #define WIRE_INTERFACES_COUNT (1)
14+ #define I2C_SDA (8)
15+ #define I2C_SCL (9)
16+
17+ #define USE_SSD1306
18+
19+ // GPS
20+ #undef GPS_RX_PIN
21+ #undef GPS_TX_PIN
22+ #define GPS_RX_PIN (20)
23+ #define GPS_TX_PIN (21)
24+
25+ // Button, active LOW
26+ #define BUTTON_PIN (10)
27+
28+ // LoRa
29+ #define USE_LLCC68
30+ // TODO: why enable SX126x if not used ?
31+ // Note: without these, LoRa will not work correctly
32+ #define USE_SX1262
33+ // #define USE_RF95
34+ #define USE_SX1268
35+
36+ #define LORA_DIO0 RADIOLIB_NC
37+ #define LORA_RESET (0)
38+ #define LORA_DIO1 (1)
39+ #define LORA_RXEN (2)
40+ #define LORA_BUSY (3)
41+ #define LORA_SCK (4)
42+ #define LORA_MISO (5)
43+ #define LORA_MOSI (6)
44+ #define LORA_CS (7)
45+
46+ #define SX126X_CS LORA_CS
47+ #define SX126X_DIO1 LORA_DIO1
48+ #define SX126X_BUSY LORA_BUSY
49+ #define SX126X_RESET LORA_RESET
50+ #define SX126X_RXEN LORA_RXEN
51+
52+ #define SX126X_DIO3_TCXO_VOLTAGE (1.8)
53+ #define TCXO_OPTIONAL // make it so that the firmware can try both TCXO and XTAL
54+
55+ #ifdef __cplusplus
56+ }
57+ #endif
58+
59+ /*----------------------------------------------------------------------------
60+ * Arduino objects - C++ only
61+ *----------------------------------------------------------------------------*/
62+
63+ #endif
You can’t perform that action at this time.
0 commit comments