File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ def write_config_h(filename=CONFIG_H,
117
117
f .write ('#define DISPLAY_TYPE_KINGMETER (DISPLAY_TYPE_KINGMETER_618U|DISPLAY_TYPE_KINGMETER_901U)\n ' )
118
118
f .write ('#define DISPLAY_TYPE_BAFANG_C961 (1<<9)\n ' )
119
119
f .write ('#define DISPLAY_TYPE_BAFANG_C965 (1<<10)\n ' )
120
- f .write ('#define DISPLAY_TYPE_BAFANG (DISPLAY_TYPE_BAFANG_C961|DISPLAY_TYPE_BAFANG_C965)\n ' )
120
+ f .write ('#define DISPLAY_TYPE_BAFANG_SW102 (1<<11)\n ' )
121
+ f .write ('#define DISPLAY_TYPE_BAFANG (DISPLAY_TYPE_BAFANG_C961|DISPLAY_TYPE_BAFANG_C965|DISPLAY_TYPE_BAFANG_SW102)\n ' )
121
122
f .write ('\n ' )
122
123
f .write ('#define DISPLAY_TYPE DISPLAY_TYPE_' + display_type + ' //Set your display type here. CHANGES ONLY HERE!<-----------------------------\n ' )
123
124
f .write ('\n ' )
@@ -366,7 +367,8 @@ def test_display_types(self):
366
367
'BMS' ,
367
368
'BMS3' ,
368
369
'BAFANG_C961' ,
369
- 'BAFANG_C965' ]:
370
+ 'BAFANG_C965' ,
371
+ 'BAFANG_SW102' ]:
370
372
self .build_firmware (disp_type , display_type = disp_type )
371
373
372
374
def test_16x2_serial_with_dynamic_backlight (self ):
You can’t perform that action at this time.
0 commit comments