Browse Source

v1203| 移液枪 添加IO1输出功能核对代码

master
zhaohe 3 months ago
parent
commit
829adb6b62
  1. 14
      sdk/components/pipette_module/pipette_ctrl_module_v2.cpp
  2. 2
      usrc/version.h

14
sdk/components/pipette_module/pipette_ctrl_module_v2.cpp

@ -68,6 +68,18 @@ void PipetteModuleV2::initialize(int32_t id, config_t *config, hardward_config_t
m_zm->getGState(); // 读取状态,清空下复位标识
module_active_cfg();
static ZGPIO PietteGunIO1;
PietteGunIO1.initAsInput(PB1, ZGPIO::kMode_pullup, ZGPIO::kIRQ_noIrq, true); // lld输入高
m_smtp2.pump_set_io1_mode(2); // lld输入高
m_smtp2.pump_set_io1_state(0);
osDelay(100);
ZLOGI(TAG, "read io1 state:%d", PietteGunIO1.getState());
m_smtp2.pump_set_io1_state(1); // lld输入高
osDelay(100);
ZLOGI(TAG, "read io1 state:%d", PietteGunIO1.getState());
m_smtp2.pump_set_io1_mode(0); // lld输入高
// m_smtp2.dumpparam();
}
@ -131,8 +143,6 @@ int32_t PipetteModuleV2::module_active_cfg() {
return 0;
}
#define XXX_STATE_REG(statekey, action) PROCESS_REG(statekey, action, ACTION_NONE)
int32_t PipetteModuleV2::module_set_reg(int32_t regindex, int32_t val) {

2
usrc/version.h

@ -1,2 +1,2 @@
#pragma once
#define APP_VERSION 1202
#define APP_VERSION 1203
Loading…
Cancel
Save