-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into use-ina-currentflow-for-charging-detection
- Loading branch information
Showing
22 changed files
with
252 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
bin/config.d/femtofox/femtofox_EByte-E22-900M30S_Ebyte-E22-900M22S.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
bin/config.d/femtofox/femtofox_Heltec-HT-RA62_Seeed-WIO-SX1262.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
Lora: | ||
## Ebyte E80-900M22S | ||
## This is a bit experimental | ||
## | ||
## | ||
Module: lr1121 | ||
gpiochip: 1 # subtract 32 from the gpio numbers | ||
DIO3_TCXO_VOLTAGE: 1.8 | ||
CS: 16 #pin6 / GPIO48 1C0 | ||
IRQ: 23 #pin17 / GPIO55 1C7 | ||
Busy: 22 #pin16 / GPIO54 1C6 | ||
Reset: 25 #pin13 / GPIO57 1D1 | ||
|
||
|
||
spidev: spidev0.0 #pins are (CS=16, CLK=17, MOSI=18, MISO=19) | ||
spiSpeed: 2000000 | ||
|
||
General: | ||
MACAddressSource: eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
Lora: | ||
## Ebyte E22-900M30S, E22-900M22S with or without external RF switching setup | ||
## HT-RA62 (Has internal switching, but whatever) | ||
## Seeed WIO SX1262 (already has TXEN-DIO2 link, but needs RXEN) | ||
## Will work with any module with or without RF switching, and with TCXO | ||
Module: sx1262 | ||
gpiochip: 1 # subtract 32 from the gpio numbers | ||
DIO2_AS_RF_SWITCH: true | ||
DIO3_TCXO_VOLTAGE: true | ||
CS: 16 #pin6 / GPIO48 1C0 | ||
IRQ: 23 #pin17 / GPIO55 1C7 | ||
Busy: 22 #pin16 / GPIO54 1C6 | ||
Reset: 25 #pin13 / GPIO57 1D1 | ||
RXen: 24 #pin12 / GPIO56 1D0 # Not strictly needed for auto-switching, but why complicate things? | ||
# TXen: bridge to DIO2 on E22 module | ||
spidev: spidev0.0 #pins are (CS=16, CLK=17, MOSI=18, MISO=19) | ||
spiSpeed: 2000000 | ||
|
||
General: | ||
MACAddressSource: eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
Lora: | ||
## Ebyte E22-900MM22S with no external RF switching setup | ||
## Waveshare SX126X XXXM, AI Thinker RA-01SH | ||
## Will work with any module with or without RF switching and no TCXO | ||
|
||
Module: sx1262 | ||
gpiochip: 1 # subtract 32 from the gpio numbers | ||
DIO2_AS_RF_SWITCH: true | ||
DIO3_TCXO_VOLTAGE: false | ||
CS: 16 #pin6 / GPIO48 1C0 | ||
IRQ: 23 #pin17 / GPIO55 1C7 | ||
Busy: 22 #pin16 / GPIO54 1C6 | ||
Reset: 25 #pin13 / GPIO57 1D1 | ||
RXen: 24 #pin12 / GPIO56 1D0 # Not strictly needed for auto-switching, but why complicate things? | ||
# TXen: bridge to DIO2 on E22 module | ||
spidev: spidev0.0 #pins are (CS=16, CLK=17, MOSI=18, MISO=19) | ||
spiSpeed: 2000000 | ||
|
||
General: | ||
MACAddressSource: eth0 |
13 changes: 0 additions & 13 deletions
13
bin/config.d/femtofox/femtofox_Waveshare-SX126X-XXXM_AI-Thinker-RA-01SH.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"partitions": "default.csv", | ||
"memory_type": "qio_qspi" | ||
}, | ||
"core": "esp32", | ||
"extra_flags": [ | ||
"-DARDUINO_ESP32S3_DEV", | ||
"-DARDUINO_RUNNING_CORE=1", | ||
"-DARDUINO_EVENT_RUNNING_CORE=1", | ||
"-DARDUINO_USB_CDC_ON_BOOT=1", | ||
"-DBOARD_HAS_PSRAM" | ||
], | ||
"f_cpu": "240000000L", | ||
"f_flash": "80000000L", | ||
"flash_mode": "qio", | ||
"psram_type": "qio", | ||
"hwids": [["0x303A", "0x1001"]], | ||
"mcu": "esp32s3", | ||
"variant": "esp32s3" | ||
}, | ||
"connectivity": ["wifi", "bluetooth"], | ||
"debug": { | ||
"default_tool": "esp-builtin", | ||
"onboard_tools": ["esp-builtin"], | ||
"openocd_target": "esp32s3.cfg" | ||
}, | ||
"frameworks": ["arduino", "espidf"], | ||
"platforms": ["espressif32"], | ||
"name": "Espressif ESP32-S3-FH4R2 (4 MB QD, 2MB PSRAM)", | ||
"upload": { | ||
"flash_size": "4MB", | ||
"maximum_ram_size": 327680, | ||
"maximum_size": 4194304, | ||
"require_upload_port": true, | ||
"speed": 921600 | ||
}, | ||
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html", | ||
"vendor": "Espressif" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.