-
-
Notifications
You must be signed in to change notification settings - Fork 883
variants: USB Companion variant for LilyGo T-Echo Lite #2472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
emkZero
wants to merge
8
commits into
meshcore-dev:dev
Choose a base branch
from
emkZero:variant-techo-lite-usb-companion
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6836015
Add LilyGo T-ETH Elite board support
web-flow 528bf3f
add FUNDING.yml
liamcottle 34db931
Removed links to outdated resources and links
LitBomb b948369
Update script link in FAQ 4.7
keithtweed fed8d36
Merge pull request #2412 from LitBomb/patch-25
ripplebiz 03a13ae
Merge pull request #2413 from keithtweed/patch-1
liamcottle 1a7b361
Merge pull request #2388 from OhYou-0/lilygo-teth-elite-board-support
ripplebiz d3cfa52
Added USB Companion variant for LilyGo T-Echo Lite
emkZero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| github: meshcore-dev |
This file contains hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| #pragma once | ||
|
|
||
| #include <helpers/ESP32Board.h> | ||
|
|
||
| class TETHEliteBoard : public ESP32Board { | ||
| public: | ||
| const char* getManufacturerName() const override { | ||
| return "LilyGO T-ETH Elite"; | ||
| } | ||
| }; |
This file contains hidden or 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,99 @@ | ||
| [LilyGo_TETH_Elite_sx1262] | ||
| extends = esp32_base | ||
| board = esp32s3box | ||
| board_build.partitions = default_16MB.csv | ||
| board_upload.flash_size = 16MB | ||
| build_flags = | ||
| ${esp32_base.build_flags} | ||
| -I variants/lilygo_teth_elite | ||
| -D BOARD_HAS_PSRAM | ||
| -D LILYGO_TETH_ELITE | ||
| -D LILYGO_T_ETH_ELITE_ESP32S3 | ||
| -D ARDUINO_USB_CDC_ON_BOOT=1 | ||
| -D P_LORA_DIO_1=8 | ||
| -D P_LORA_NSS=40 | ||
| -D P_LORA_RESET=46 | ||
| -D P_LORA_BUSY=16 | ||
| -D P_LORA_SCLK=10 | ||
| -D P_LORA_MISO=9 | ||
| -D P_LORA_MOSI=11 | ||
| -D P_LORA_TX_LED=38 | ||
| -D SX126X_DIO2_AS_RF_SWITCH=true | ||
| -D SX126X_DIO3_TCXO_VOLTAGE=1.8 | ||
| -D SX126X_CURRENT_LIMIT=140 | ||
| -D USE_SX1262 | ||
| -D RADIO_CLASS=CustomSX1262 | ||
| -D WRAPPER_CLASS=CustomSX1262Wrapper | ||
| -D LORA_TX_POWER=8 | ||
| -D SX126X_RX_BOOSTED_GAIN=1 | ||
| build_src_filter = ${esp32_base.build_src_filter} | ||
| +<../variants/lilygo_teth_elite> | ||
| lib_deps = | ||
| ${esp32_base.lib_deps} | ||
|
|
||
| [env:LilyGo_TETH_Elite_sx1262_repeater] | ||
| extends = LilyGo_TETH_Elite_sx1262 | ||
| build_flags = | ||
| ${LilyGo_TETH_Elite_sx1262.build_flags} | ||
| -D ADVERT_NAME='"T-ETH Elite Repeater"' | ||
| -D ADVERT_LAT=0.0 | ||
| -D ADVERT_LON=0.0 | ||
| -D ADMIN_PASSWORD='"password"' | ||
| -D MAX_NEIGHBOURS=50 | ||
| ; -D MESH_PACKET_LOGGING=1 | ||
| ; -D MESH_DEBUG=1 | ||
| build_src_filter = ${LilyGo_TETH_Elite_sx1262.build_src_filter} | ||
| +<../examples/simple_repeater> | ||
| lib_deps = | ||
| ${LilyGo_TETH_Elite_sx1262.lib_deps} | ||
| ${esp32_ota.lib_deps} | ||
|
|
||
| [env:LilyGo_TETH_Elite_sx1262_room_server] | ||
| extends = LilyGo_TETH_Elite_sx1262 | ||
| build_flags = | ||
| ${LilyGo_TETH_Elite_sx1262.build_flags} | ||
| -D ADVERT_NAME='"T-ETH Elite Room"' | ||
| -D ADVERT_LAT=0.0 | ||
| -D ADVERT_LON=0.0 | ||
| -D ADMIN_PASSWORD='"password"' | ||
| -D ROOM_PASSWORD='"hello"' | ||
| ; -D MESH_PACKET_LOGGING=1 | ||
| ; -D MESH_DEBUG=1 | ||
| build_src_filter = ${LilyGo_TETH_Elite_sx1262.build_src_filter} | ||
| +<../examples/simple_room_server> | ||
| lib_deps = | ||
| ${LilyGo_TETH_Elite_sx1262.lib_deps} | ||
| ${esp32_ota.lib_deps} | ||
|
|
||
| [env:LilyGo_TETH_Elite_sx1262_companion_radio_usb] | ||
| extends = LilyGo_TETH_Elite_sx1262 | ||
| build_flags = | ||
| ${LilyGo_TETH_Elite_sx1262.build_flags} | ||
| -D MAX_CONTACTS=350 | ||
| -D MAX_GROUP_CHANNELS=40 | ||
| -D OFFLINE_QUEUE_SIZE=256 | ||
| ; -D MESH_PACKET_LOGGING=1 | ||
| ; -D MESH_DEBUG=1 | ||
| build_src_filter = ${LilyGo_TETH_Elite_sx1262.build_src_filter} | ||
| +<../examples/companion_radio/*.cpp> | ||
| lib_deps = | ||
| ${LilyGo_TETH_Elite_sx1262.lib_deps} | ||
| densaugeo/base64 @ ~1.4.0 | ||
|
|
||
| [env:LilyGo_TETH_Elite_sx1262_companion_radio_ble] | ||
| extends = LilyGo_TETH_Elite_sx1262 | ||
| build_flags = | ||
| ${LilyGo_TETH_Elite_sx1262.build_flags} | ||
| -D MAX_CONTACTS=350 | ||
| -D MAX_GROUP_CHANNELS=40 | ||
| -D BLE_PIN_CODE=123456 | ||
| -D BLE_DEBUG_LOGGING=1 | ||
| -D OFFLINE_QUEUE_SIZE=256 | ||
| ; -D MESH_PACKET_LOGGING=1 | ||
| ; -D MESH_DEBUG=1 | ||
| build_src_filter = ${LilyGo_TETH_Elite_sx1262.build_src_filter} | ||
| +<helpers/esp32/*.cpp> | ||
| +<../examples/companion_radio/*.cpp> | ||
| lib_deps = | ||
| ${LilyGo_TETH_Elite_sx1262.lib_deps} | ||
| densaugeo/base64 @ ~1.4.0 |
This file contains hidden or 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,43 @@ | ||
| #include <Arduino.h> | ||
| #include "target.h" | ||
|
|
||
| TETHEliteBoard board; | ||
|
|
||
| static SPIClass spi(HSPI); | ||
| RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY, spi); | ||
| WRAPPER_CLASS radio_driver(radio, board); | ||
|
|
||
| ESP32RTCClock fallback_clock; | ||
| AutoDiscoverRTCClock rtc_clock(fallback_clock); | ||
| SensorManager sensors; | ||
|
|
||
| #ifndef LORA_CR | ||
| #define LORA_CR 5 | ||
| #endif | ||
|
|
||
| bool radio_init() { | ||
| fallback_clock.begin(); | ||
| rtc_clock.begin(Wire); | ||
|
|
||
| return radio.std_init(&spi); | ||
| } | ||
|
|
||
| uint32_t radio_get_rng_seed() { | ||
| return radio.random(0x7FFFFFFF); | ||
| } | ||
|
|
||
| void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr) { | ||
| radio.setFrequency(freq); | ||
| radio.setSpreadingFactor(sf); | ||
| radio.setBandwidth(bw); | ||
| radio.setCodingRate(cr); | ||
| } | ||
|
|
||
| void radio_set_tx_power(int8_t dbm) { | ||
| radio.setOutputPower(dbm); | ||
| } | ||
|
|
||
| mesh::LocalIdentity radio_new_identity() { | ||
| RadioNoiseListener rng(radio); | ||
| return mesh::LocalIdentity(&rng); | ||
| } |
This file contains hidden or 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 @@ | ||
| #pragma once | ||
|
|
||
| #define RADIOLIB_STATIC_ONLY 1 | ||
| #include <RadioLib.h> | ||
| #include <helpers/radiolib/RadioLibWrappers.h> | ||
| #include <helpers/radiolib/CustomSX1262Wrapper.h> | ||
| #include <helpers/AutoDiscoverRTCClock.h> | ||
| #include <helpers/SensorManager.h> | ||
| #include "TETHEliteBoard.h" | ||
|
|
||
| extern TETHEliteBoard board; | ||
| extern WRAPPER_CLASS radio_driver; | ||
| extern AutoDiscoverRTCClock rtc_clock; | ||
| extern SensorManager sensors; | ||
|
|
||
| bool radio_init(); | ||
| uint32_t radio_get_rng_seed(); | ||
| void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr); | ||
| void radio_set_tx_power(int8_t dbm); | ||
| mesh::LocalIdentity radio_new_identity(); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the T-Echo Lite have an external flash chip? The schematic says it has a ZD25WQ32CEIGR. I have added support for this chip in CustomLFS 0.2.2 but we are currently pointing at 0.2.1 so the chip should still work just in compatibility mode at 1mb instead of the full 4mb.