mini板 模拟键盘鼠标字符输入

+所有板增加获取主控id
+所有板修改初始化LTR390UV
This commit is contained in:
Irene-Maxine
2024-09-10 19:00:59 +08:00
parent 9d5bb10f10
commit 21d758f78a
17 changed files with 783 additions and 291 deletions

View File

@@ -175,10 +175,13 @@ export const sensor_use_i2c_init = function (_, generator) {
code = v + ' = adxl345.' + key + "(" + iv + ')\n';
} else if (key == 'LTR308') {
generator.definitions_['import_ltr308al'] = 'import ltr308al';
code = v + ' = ltr308al.LTR_308ALS(' + iv + ')\n';
code = v + ' = ltr308al.LTR308ALS(' + iv + ')\n';
} else if (key == 'LTR381RGB') {
generator.definitions_['import_ltr381rgb'] = 'import ltr381rgb';
code = v + ' = ltr381rgb.LTR_381RGB(' + iv + ')\n';
}else if (key == 'LTR390UV'){
generator.definitions_['import_ltr390uv'] = 'import ltr390uv';
code = v + ' = ltr390uv.ALS_UVS(' + iv +')\n';
} else if (key == 'HP203X') {
generator.definitions_['import_hp203x'] = 'import hp203x';
code = v + ' = hp203x.HP203X(' + iv + ')\n';