From 829adb6b626da4fb02573ee3b4084e632726bff8 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 23 Apr 2025 14:20:11 +0800 Subject: [PATCH] =?UTF-8?q?v1203|=20=E7=A7=BB=E6=B6=B2=E6=9E=AA=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0IO1=E8=BE=93=E5=87=BA=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=A0=B8=E5=AF=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/components/pipette_module/pipette_ctrl_module_v2.cpp | 14 ++++++++++++-- usrc/version.h | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) 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