程序重命名及版本更新

- 程序名从 TowerOptoSifAndSpectral 更名为 AirOptoSifAndSpectral
- 版本从 2.1.5 更新至 2.1.9
- GPIO 控制逻辑修改:引脚 1 和 12 输出改为 0
- 新增 dpkg preinst 脚本处理冲突文件
This commit is contained in:
xin
2026-04-07 10:28:53 +08:00
parent e8db9aa9fe
commit 84787f1006
13 changed files with 559 additions and 597 deletions

View File

@ -60,12 +60,20 @@ int main(int argc, char *argv[])
iRet0 = system("gpio mode 1 out");
iRet1 = system("gpio mode 4 out");
iRet2 = system("gpio mode 5 out");
iRet1 = system("gpio mode 20 out");
qDebug()<< "set gpio 20 out"<< endl;
iRet2 = system("gpio mode 21 out");
qDebug()<< "set gpio 21 out"<< endl;
iRet1 = system("gpio mode 22 out");
qDebug()<< "set gpio 22 out"<< endl;
iRet2 = system("gpio mode 23 out");
qDebug()<< "set gpio 23 out"<< endl;
system("gpio mode 13 input");
system("gpio write 13 0");
iRet3 = system("gpio write 1 1");//上电
iRet3 = system("gpio write 1 0");//上电
iRet3 = system("gpio write 12 0");//上电
qDebug() << "gpio 1;4;5; ready"<<" Ret:"<< iRet0<< iRet1<< iRet2<< endl;
qDebug() << "gpio write 1 1......" <<" Ret:"<< iRet3<< endl;
qDebug() << "gpio write 1 0......" <<" Ret:"<< iRet3<< endl;
// QString qstrCMD_A, qstrCMD_B, qstrCMD_Temp;
// qstrCMD_Temp = QString::fromStdString("4");