diff --git a/sdk/components/pipette_module/pipette_ctrl_module_v2.cpp b/sdk/components/pipette_module/pipette_ctrl_module_v2.cpp index 4f72e88..1024821 100644 --- a/sdk/components/pipette_module/pipette_ctrl_module_v2.cpp +++ b/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) { diff --git a/usrc/version.h b/usrc/version.h index e21d1fb..316860b 100644 --- a/usrc/version.h +++ b/usrc/version.h @@ -1,2 +1,2 @@ #pragma once -#define APP_VERSION 1202 +#define APP_VERSION 1203