File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,15 @@ pio device monitor
45
45
## Back to Normal
46
46
To get your Tidbyt back to normal, you can run the following to flash the
47
47
production firmware onto your Tidbyt:
48
+
49
+ ```
50
+ pio run --target reset --environment tidbyt
51
+ ```
52
+
53
+ And if you're working with a Tidbyt Gen 2:
54
+
48
55
```
49
- pio run --target reset
56
+ pio run --target reset --environment tidbyt-gen2
50
57
```
51
58
52
59
[ 1 ] : https://github.com/tidbyt/pixlet
Original file line number Diff line number Diff line change 3
3
import os .path
4
4
import requests
5
5
6
- PRODUCTION_VERSION = "v10/26961"
6
+ PRODUCTION_VERSION = {
7
+ "tidbyt" : "v10/35369" ,
8
+ "tidbyt-gen2" : "v11/35369"
9
+ }[env ["PIOENV" ]]
7
10
8
11
def fetch_firmware ():
12
+
9
13
binaries = [
10
14
"firmware.bin" ,
11
15
"partitions.bin" ,
@@ -22,7 +26,7 @@ def fetch_firmware():
22
26
r = requests .get (f"https://storage.googleapis.com/tidbyt-public-firmware/{ PRODUCTION_VERSION } /{ binary } " )
23
27
if r .status_code != 200 :
24
28
raise Exception (f"Failed to fetch { binary } : { r .status_code } " )
25
-
29
+
26
30
with open (f".production/{ PRODUCTION_VERSION } /{ binary } " , "wb" ) as f :
27
31
f .write (r .content )
28
32
@@ -58,4 +62,4 @@ def fetch_firmware():
58
62
RESET_UPLOADCMD = '"$PYTHONEXE" "$RESET_UPLOADER" $RESET_UPLOADERFLAGS'
59
63
)
60
64
61
- env .AddCustomTarget ("reset" , None , actions = ['$RESET_UPLOADCMD' ])
65
+ env .AddCustomTarget ("reset" , None , actions = ['$RESET_UPLOADCMD' ])
You can’t perform that action at this time.
0 commit comments