Skip to content

Commit a946a49

Browse files
authored
Merge pull request #312 from Builty/EEZ_UI
Eez UI to Main merge
2 parents 5b4ed44 + 34b7971 commit a946a49

File tree

1,247 files changed

+217635
-177380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,247 files changed

+217635
-177380
lines changed

build_distrib/build_distrib.py

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
dirname = Path.cwd()
1010

1111
# set version
12-
version = '2.0.1.2'
12+
version = '2.0.2.2'
1313

1414
def delete_files_in_folder(directory):
1515
for filename in os.listdir(directory):
@@ -22,7 +22,7 @@ def delete_files_in_folder(directory):
2222
except Exception as e:
2323
print('Failed to delete %s. Reason: %s' % (file_path, e))
2424

25-
def build_distribution(template, target_folder, include_ota, out_filename):
25+
def build_distribution(template, target_folder, include_ota, out_filename, skins_path=None):
2626
print('BuildDistrib working in folder: ', target_folder)
2727

2828
# copy default flash updater
@@ -31,7 +31,9 @@ def build_distribution(template, target_folder, include_ota, out_filename):
3131

3232
print('Delete files in ' + dest)
3333
delete_files_in_folder(dest)
34-
34+
35+
os.mkdir(os.path.join(dest, 'bin'))
36+
3537
# copy new files
3638
print('copy template files from ' + template)
3739
#copy_tree(src, dest)
@@ -66,6 +68,13 @@ def build_distribution(template, target_folder, include_ota, out_filename):
6668
print('copying: ' + src + ' to ' + dest)
6769
shutil.copy(src, dest)
6870

71+
if skins_path is not None:
72+
# copy skins bin
73+
print('copy skins bin...')
74+
src = os.path.join(dirname, '..', 'source', 'skin_images', skins_path, 'skins.bin')
75+
dest = os.path.join(dirname, 'temp', 'bin')
76+
print('copying: ' + src + ' to ' + dest)
77+
shutil.copy(src, dest)
6978

7079
# create zip file
7180
print('zip files...')
@@ -90,13 +99,9 @@ def build_distribution(template, target_folder, include_ota, out_filename):
9099
zip_name = 'TonexController_V' + version + '_Waveshare_1_69_Touch_land'
91100
build_distribution('template_cust_partition', 'build_ws169tland', True, zip_name)
92101

93-
# Build Waveshare 4.3B with Amp skins
94-
zip_name = 'TonexController_V' + version + '_Waveshare_4_3B_Display_Amp_Skins'
95-
build_distribution('template_cust_partition', 'build_ws43b_as', True, zip_name)
96-
97-
# Build Waveshare 4.3B with Pedal skins
98-
zip_name = 'TonexController_V' + version + '_Waveshare_4_3B_Display_Pedal_Skins'
99-
build_distribution('template_cust_partition', 'build_ws43b_ps', True, zip_name)
102+
# Build Waveshare 4.3B
103+
zip_name = 'TonexController_V' + version + '_Waveshare_4_3B'
104+
build_distribution('template_cust_partition_16MB', 'build_ws43b', True, zip_name, '16bit')
100105

101106
# Build Waveshare Zero
102107
zip_name = 'TonexController_V' + version + '_Waveshare_Zero'
@@ -118,21 +123,13 @@ def build_distribution(template, target_folder, include_ota, out_filename):
118123
zip_name = 'TonexController_V' + version + '_Lilygo_TDisplay_S3'
119124
build_distribution('template_cust_partition', 'build_lgtdisps3', True, zip_name)
120125

121-
# Build Waveshare 3.5B with Amp skins
122-
zip_name = 'TonexController_V' + version + '_Waveshare_3_5B_Display_Amp_Skins'
123-
build_distribution('template_cust_partition', 'build_ws35b_as', True, zip_name)
124-
125-
# Build Waveshare 3.5B with Pedal skins
126-
zip_name = 'TonexController_V' + version + '_Waveshare_3_5B_Display_Pedal_Skins'
127-
build_distribution('template_cust_partition', 'build_ws35b_ps', True, zip_name)
128-
129-
# Build JC3248W with Amp skins
130-
zip_name = 'TonexController_V' + version + '_JC3248W_Display_Amp_Skins'
131-
build_distribution('template_cust_partition', 'build_jc3248w_as', True, zip_name)
126+
# Build Waveshare 3.5B
127+
zip_name = 'TonexController_V' + version + '_Waveshare_3_5B'
128+
build_distribution('template_cust_partition_16MB', 'build_ws35b', True, zip_name, '16bitswapped')
132129

133-
# Build JC3248W with Pedal skins
134-
zip_name = 'TonexController_V' + version + '_JC3248W_Display_Pedal_Skins'
135-
build_distribution('template_cust_partition', 'build_jc3248w_ps', True, zip_name)
130+
# Build JC3248W
131+
zip_name = 'TonexController_V' + version + '_JC3248W'
132+
build_distribution('template_cust_partition_16MB', 'build_jc3248w', True, zip_name, '16bitswapped')
136133

137134
# Build Waveshare 1.9
138135
zip_name = 'TonexController_V' + version + '_Waveshare_1_9'
@@ -150,8 +147,8 @@ def build_distribution(template, target_folder, include_ota, out_filename):
150147
zip_name = 'TonexController_V' + version + '_PirateMidi_PolarPlus'
151148
build_distribution('template_cust_partition', 'build_pirate169land', True, zip_name)
152149

153-
# Build Pirate Midi Polar Max (4.3B) amp skins
154-
zip_name = 'TonexController_V' + version + '_PirateMidi_PolarMax_Amp_Skins'
155-
build_distribution('template_cust_partition', 'build_pirate43B_as', True, zip_name)
150+
# Build Pirate Midi Polar Max (4.3B)
151+
zip_name = 'TonexController_V' + version + '_PirateMidi_PolarMax'
152+
build_distribution('template_cust_partition_16MB', 'build_pirate43B', True, zip_name, '16bit')
156153

157154
print('All done')
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
[EFUSE CHECK]
2+
efuse_mode = 1
3+
efuse_err_halt = 1
4+
5+
[DOWNLOAD PATH]
6+
file_sel0 = 1
7+
file_path0 = bin\bootloader.bin
8+
file_offset0 = 0x0
9+
file_sel1 = 1
10+
file_path1 = bin\partition-table.bin
11+
file_offset1 = 0x8000
12+
file_sel2 = 1
13+
file_path2 = bin\TonexController.bin
14+
file_offset2 = 0x10000
15+
file_sel3 = 1
16+
file_path3 = bin\ota_data_initial.bin
17+
file_offset3 = 0xd000
18+
file_sel4 = 1
19+
file_path4 = bin\skins.bin
20+
file_offset4 = 0x4f2000
21+
file_sel5 = 0
22+
file_path5 =
23+
file_offset5 =
24+
file_sel6 = 0
25+
file_path6 =
26+
file_offset6 =
27+
file_sel7 = 0
28+
file_path7 =
29+
file_offset7 =
30+
file_sel8 = 0
31+
file_path8 =
32+
file_offset8 =
33+
file_sel9 = 0
34+
file_path9 =
35+
file_offset9 =
36+
file_sel10 = 0
37+
file_path10 =
38+
file_offset10 =
39+
file_sel11 = 0
40+
file_path11 =
41+
file_offset11 =
42+
file_sel12 = 0
43+
file_path12 =
44+
file_offset12 =
45+
file_sel13 = 0
46+
file_path13 =
47+
file_offset13 =
48+
default_path = ./bin/
49+
50+
[LOCK]
51+
lock_setting_password =
52+
53+
[FLASH_CRYSTAL]
54+
spicfgdis = 1
55+
spispeed = 3
56+
spimode = 2
57+
58+
[DOWNLOAD]
59+
erase_button_en = True
60+
autostart1 = 0
61+
com_port1 = COM10
62+
baudrate1 = 2
63+
checkmac1 = 1
64+
autostart2 = 0
65+
com_port2 =
66+
baudrate2 = 2
67+
checkmac2 = 1
68+
autostart3 = 0
69+
com_port3 =
70+
baudrate3 = 2
71+
checkmac3 = 1
72+
autostart4 = 0
73+
com_port4 =
74+
baudrate4 = 2
75+
checkmac4 = 1
76+
autostart5 = 0
77+
com_port5 =
78+
baudrate5 = 2
79+
checkmac5 = 1
80+
autostart6 = 0
81+
com_port6 =
82+
baudrate6 = 2
83+
checkmac6 = 1
84+
autostart7 = 0
85+
com_port7 =
86+
baudrate7 = 2
87+
checkmac7 = 1
88+
autostart8 = 0
89+
com_port8 =
90+
baudrate8 = 2
91+
checkmac8 = 1
92+
93+
[LOG_CHECK]
94+
log_check_enable = False
95+
log_check_baud = 115200
96+
log_check_str = 1.0.0
97+
log_check_delaytime = 3
98+
log_check_timeout = 3
99+
log_check_cmd_str = AT+GMR
100+
log_check_enable_cmd = False
101+
102+
[MAC_SAVE]
103+
mac_save_enable = False
104+
105+
[ESPTOOL_PARAM]
106+
after = no_reset
107+
before = default_reset
108+
compress = True
109+
flash_size = keep
110+
no_stub = False
111+
verify = True
112+
flash_freq = keep
113+
flash_mode = keep
114+
115+
[STATISTICS]
116+
pass1 = 3
117+
fail1 = 0
118+
pass2 = 0
119+
fail2 = 0
120+
pass3 = 0
121+
fail3 = 0
122+
pass4 = 0
123+
fail4 = 0
124+
pass5 = 0
125+
fail5 = 0
126+
pass6 = 0
127+
fail6 = 0
128+
pass7 = 0
129+
fail7 = 0
130+
pass8 = 0
131+
fail8 = 0
132+

build_distrib/template_def_partition/configure/esp32s3/security.conf renamed to build_distrib/template_cust_partition_16MB/configure/esp32s3/security.conf

File renamed without changes.

build_distrib/template_def_partition/configure/esp32s3/utility.conf renamed to build_distrib/template_cust_partition_16MB/configure/esp32s3/utility.conf

File renamed without changes.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Binary file not shown.

build_distrib/template_def_partition/doc/Flash_Download_Tool__cn.pdf renamed to build_distrib/template_cust_partition_16MB/doc/Flash_Download_Tool__cn.pdf

File renamed without changes.

0 commit comments

Comments
 (0)