修改传感器 设备名+英文名

This commit is contained in:
Irene-Maxine
2024-11-19 11:18:47 +08:00
parent 6c97e1454a
commit 3160024ae7
7 changed files with 30 additions and 30 deletions

View File

@@ -181,7 +181,7 @@ export const sensor_use_i2c_init = function (_, generator) {
code = v + ' = ltr381rgb.LTR_381RGB(' + iv + ')\n';
} else if(key == 'UCS12071'){
generator.definitions_['import_ucs12071'] = 'import ucs12071';
ode = v + ' = ucs12071.UCS12071(' + iv + ')\n';
code = v + ' = ucs12071.UCS12071(' + iv + ')\n';
} else if (key == 'LTR390UV'){
generator.definitions_['import_ltr390uv'] = 'import ltr390uv';
code = v + ' = ltr390uv.ALS_UVS(' + iv +')\n';