mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-04 09:02:21 +00:00
add nugget and nibble boards for 38c3 (#5609)
* add nugget and nibble boards for 38c3 * mark those boards extra for now
This commit is contained in:
6
variants/nibble_esp32/platformio.ini
Normal file
6
variants/nibble_esp32/platformio.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[env:nibble-esp32]
|
||||
extends = esp32s3_base
|
||||
board = esp32-s3-zero
|
||||
board_level = extra
|
||||
build_flags =
|
||||
${esp32_base.build_flags} -D PRIVATE_HW -I variants/nibble_esp32
|
||||
18
variants/nibble_esp32/variant.h
Normal file
18
variants/nibble_esp32/variant.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#define I2C_SDA 11 // I2C pins for this board
|
||||
#define I2C_SCL 10
|
||||
|
||||
#define LED_PIN 1 // If defined we will blink this LED
|
||||
|
||||
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
|
||||
#define BUTTON_NEED_PULLUP
|
||||
|
||||
#define USE_RF95
|
||||
#define LORA_SCK 6
|
||||
#define LORA_MISO 7
|
||||
#define LORA_MOSI 8
|
||||
#define LORA_CS 9
|
||||
#define LORA_DIO0 5 // a No connect on the SX1262 module
|
||||
#define LORA_RESET 4
|
||||
|
||||
#define LORA_DIO1 RADIOLIB_NC
|
||||
#define LORA_DIO2 RADIOLIB_NC
|
||||
17
variants/nibble_rp2040/platformio.ini
Normal file
17
variants/nibble_rp2040/platformio.ini
Normal file
@@ -0,0 +1,17 @@
|
||||
[env:nibble-rp2040]
|
||||
extends = rp2040_base
|
||||
board = rpipico
|
||||
board_level = extra
|
||||
upload_protocol = picotool
|
||||
|
||||
# add our variants files to the include and src paths
|
||||
build_flags = ${rp2040_base.build_flags}
|
||||
-DPRIVATE_HW
|
||||
-Ivariants/nibble_rp2040
|
||||
-DDEBUG_RP2040_PORT=Serial
|
||||
-DHW_SPI1_DEVICE
|
||||
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m0plus"
|
||||
lib_deps =
|
||||
${rp2040_base.lib_deps}
|
||||
debug_build_flags = ${rp2040_base.build_flags}, -g
|
||||
debug_tool = cmsis-dap ; for e.g. Picotool
|
||||
18
variants/nibble_rp2040/variant.h
Normal file
18
variants/nibble_rp2040/variant.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#define ARDUINO_ARCH_AVR
|
||||
|
||||
#define BUTTON_PIN -1 // Pin 17 used for antenna switching via DIO4
|
||||
|
||||
#define LED_PIN 1
|
||||
|
||||
#define HAS_CPU_SHUTDOWN 1
|
||||
|
||||
#define USE_RFM95
|
||||
#define LORA_SCK 10
|
||||
#define LORA_MISO 12
|
||||
#define LORA_MOSI 11
|
||||
#define LORA_CS 13
|
||||
|
||||
#define LORA_DIO0 14
|
||||
#define LORA_RESET 15
|
||||
#define LORA_DIO1 RADIOLIB_NC
|
||||
#define LORA_DIO2 RADIOLIB_NC
|
||||
6
variants/nugget_s2_lora/platformio.ini
Normal file
6
variants/nugget_s2_lora/platformio.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[env:nugget-s2-lora]
|
||||
extends = esp32s2_base
|
||||
board = lolin_s2_mini
|
||||
board_level = extra
|
||||
build_flags =
|
||||
${esp32s2_base.build_flags} -D PRIVATE_HW -I variants/nugget_s2_lora
|
||||
23
variants/nugget_s2_lora/variant.h
Normal file
23
variants/nugget_s2_lora/variant.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#define I2C_SDA 34 // I2C pins for this board
|
||||
#define I2C_SCL 36
|
||||
|
||||
#define LED_PIN 15 // If defined we will blink this LED
|
||||
|
||||
#define HAS_NEOPIXEL // Enable the use of neopixels
|
||||
#define NEOPIXEL_COUNT 3 // How many neopixels are connected
|
||||
#define NEOPIXEL_DATA 12 // gpio pin used to send data to the neopixels
|
||||
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
|
||||
|
||||
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
|
||||
#define BUTTON_NEED_PULLUP
|
||||
|
||||
#define USE_RF95
|
||||
#define LORA_SCK 6
|
||||
#define LORA_MISO 8
|
||||
#define LORA_MOSI 10
|
||||
#define LORA_CS 13
|
||||
#define LORA_DIO0 16
|
||||
#define LORA_RESET 5
|
||||
|
||||
#define LORA_DIO1 RADIOLIB_NC
|
||||
#define LORA_DIO2 RADIOLIB_NC
|
||||
6
variants/nugget_s3_lora/platformio.ini
Normal file
6
variants/nugget_s3_lora/platformio.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[env:nugget-s3-lora]
|
||||
extends = esp32s3_base
|
||||
board = lolin_s3_mini
|
||||
board_level = extra
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags} -D PRIVATE_HW -I variants/nugget_s3_lora
|
||||
23
variants/nugget_s3_lora/variant.h
Normal file
23
variants/nugget_s3_lora/variant.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#define I2C_SDA 34 // I2C pins for this board
|
||||
#define I2C_SCL 38
|
||||
|
||||
#define LED_PIN 15 // If defined we will blink this LED
|
||||
|
||||
#define HAS_NEOPIXEL // Enable the use of neopixels
|
||||
#define NEOPIXEL_COUNT 3 // How many neopixels are connected
|
||||
#define NEOPIXEL_DATA 10 // gpio pin used to send data to the neopixels
|
||||
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
|
||||
|
||||
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
|
||||
#define BUTTON_NEED_PULLUP
|
||||
|
||||
#define USE_RF95
|
||||
#define LORA_SCK 6
|
||||
#define LORA_MISO 7
|
||||
#define LORA_MOSI 8
|
||||
#define LORA_CS 9
|
||||
#define LORA_DIO0 16 // a No connect on the SX1262 module
|
||||
#define LORA_RESET 4
|
||||
|
||||
#define LORA_DIO1 RADIOLIB_NC
|
||||
#define LORA_DIO2 RADIOLIB_NC
|
||||
Reference in New Issue
Block a user