-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update NimBLE dependency version (2.1.0) - add uv & pressure data - add function to check whether is subscribed to notifications - add chunked data transfer mode (enable/disabled)
- Loading branch information
Showing
9 changed files
with
194 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
*.py | ||
|
||
.pio | ||
.vscode | ||
|
||
|
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
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,34 @@ | ||
|
||
import shutil | ||
import os | ||
|
||
Import("env") | ||
|
||
def copy_files_recursive(src_dir, dest_dir): | ||
"""Recursively copies files and directories from the source to the destination. | ||
Args: | ||
src_dir: The source directory. | ||
dest_dir: The destination directory. | ||
""" | ||
print(f"Updating source files to {dest_dir}") | ||
|
||
for item in os.listdir(src_dir): | ||
src_item = os.path.join(src_dir, item) | ||
dst_item = os.path.join(dest_dir, item) | ||
|
||
if os.path.isdir(src_item): | ||
shutil.copytree(src_item, dst_item, dirs_exist_ok=True) | ||
else: | ||
shutil.copy2(src_item, dst_item) | ||
|
||
try: | ||
pioenv = env._dict['PIOENV'] | ||
print(f"PlatformIO environment: {pioenv}") | ||
except (KeyError, AttributeError): | ||
print("PlatformIO environment not found in the SCons Environment.") | ||
pioenv = "devkit" | ||
|
||
sep = os.sep | ||
copy_files_recursive(f"src{sep}", f".pio{sep}libdeps{sep}{pioenv}{sep}src{sep}") | ||
|
Oops, something went wrong.