Skip to content

Commit f01b65a

Browse files
committed
Use lib_deps instead of git submodules
1 parent 6be8019 commit f01b65a

File tree

13 files changed

+44
-41
lines changed

13 files changed

+44
-41
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17-
with:
18-
submodules: recursive
1917

2018
- uses: actions/cache@v4
2119
with:

.github/workflows/pull-request.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
with:
15-
submodules: recursive
1614

1715
- uses: actions/cache@v4
1816
with:

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ To get started, you will need to download [PlatformIO Core][2] on your computer.
2323
Additionally, this firmware is designed to work with https://github.com/tronbyt/server or
2424
you can point this firmware at any URL that hosts a WebP image that is optimized for the Tidbyt display.
2525

26-
Begin with checking out the git submodules: `git submodule update --init`.
27-
2826
To flash the custom firmware on your device, run the following after replacing
2927
the variables in secrets.json.example with your desired own information and renaming it to `secrets.json`
3028
If using tidbyt_manager in docker replace the ip address to the docker host's ip address.

extra_scripts/pre.py

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
#!/usr/bin/env python3
22

3-
import os,json
3+
import os
4+
import json
45

56
Import("env")
67

8+
79
def main() -> None:
10+
# copy libwebp's library.json to the lib directory
11+
env.Execute(Copy("$PROJECT_LIBDEPS_DIR/$PIOENV/libwebp/library.json", "$PROJECT_DIR/lib/webp/library.json"))
12+
813
# if secrets.h file exists
914
if os.path.exists("secrets.json"):
1015
# read secrets.h file
1116
with open("secrets.json", "r") as f:
1217
json_config = json.load(f)
1318

14-
tidbyt_wifi_ssid = json_config.get("TIDBYT_WIFI_SSID","")
15-
tidbyt_wifi_password= json_config.get("TIDBYT_WIFI_PASSWORD","")
19+
tidbyt_wifi_ssid = json_config.get("TIDBYT_WIFI_SSID", "")
20+
tidbyt_wifi_password = json_config.get("TIDBYT_WIFI_PASSWORD", "")
1621
tidbyt_remote_url = json_config.get("TIDBYT_REMOTE_URL", "")
17-
tidbyt_refresh_interval_seconds = json_config.get("TIDBYT_REFRESH_INTERVAL_SECONDS",10)
18-
tidbyt_default_brightness = json_config.get("TIDBYT_DEFAULT_BRIGHTNESS",10)
22+
tidbyt_refresh_interval_seconds = json_config.get(
23+
"TIDBYT_REFRESH_INTERVAL_SECONDS", 10
24+
)
25+
tidbyt_default_brightness = json_config.get("TIDBYT_DEFAULT_BRIGHTNESS", 10)
1926

20-
else: # use environment variables
21-
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nWARNING : edit secrets.json.example and save as secrets.json\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
27+
else: # use environment variables
28+
print(
29+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nWARNING : edit secrets.json.example and save as secrets.json\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
30+
)
2231
print("Using Xplaceholder values for direct firmware.bin modification.")
2332
tidbyt_wifi_ssid = "XplaceholderWIFISSID________________________________"
2433
tidbyt_wifi_password = "XplaceholderWIFIPASSWORD____________________________"
2534
tidbyt_remote_url = "XplaceholderREMOTEURL_________________________________________________________________________________________"
26-
tidbyt_refresh_interval_seconds = 10 #int(os.environ.get("TIDBYT_REFRESH_INTERVAL_SECONDS"))
27-
tidbyt_default_brightness = 30 # int(os.environ.get("TIDBYT_DEFAULT_BRIGHTNESS"))
35+
tidbyt_refresh_interval_seconds = (
36+
10 # int(os.environ.get("TIDBYT_REFRESH_INTERVAL_SECONDS"))
37+
)
38+
tidbyt_default_brightness = (
39+
30 # int(os.environ.get("TIDBYT_DEFAULT_BRIGHTNESS"))
40+
)
2841

2942
env.Append(
3043
CCFLAGS=[
@@ -40,4 +53,5 @@ def main() -> None:
4053
],
4154
)
4255

56+
4357
main()

extra_scripts/reset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Import("env")
2-
31
import os.path
42
import requests
53

4+
Import("env")
5+
66
PRODUCTION_VERSION = {
77
"tidbyt": "v10/35833",
88
"tidbyt-gen2": "v11/35369"

lib/HUB75/ESP32-HUB75-MatrixPanel-DMA

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/HUB75/library.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/webp/include/src/webp/config.h

Whitespace-only changes.

lib/webp/library.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"name": "libwebp",
3+
"repository": {
4+
"type": "git",
5+
"url": "https://github.com/webmproject/libwebp.git",
6+
"branch": "main"
7+
},
38
"build": {
49
"srcFilter": [
510
"+<src/**/*.c>"
611
],
7-
"includeDir": "libwebp/src",
8-
"srcDir": "libwebp",
12+
"includeDir": "./src",
13+
"srcDir": ".",
914
"flags": [
1015
"-I include"
1116
]

0 commit comments

Comments
 (0)