From 7a057a3d2358f798e752d0a74369709ecb41bb3f Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Wed, 27 Sep 2023 22:56:43 +0800 Subject: [PATCH] test/main.c --- test/main.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/main.c b/test/main.c index bf8a940..96f2672 100644 --- a/test/main.c +++ b/test/main.c @@ -24,19 +24,12 @@ int main(int argc, char* argv[]) EDA_INST_ADD_COMPONENT(f, D0, SCF_EDA_Diode); EDA_INST_ADD_COMPONENT(f, D1, SCF_EDA_Diode); - EDA_INST_ADD_COMPONENT(f, D2, SCF_EDA_Diode); - EDA_INST_ADD_COMPONENT(f, R0, SCF_EDA_Resistor); - EDA_INST_ADD_COMPONENT(f, R1, SCF_EDA_Resistor); EDA_PIN_ADD_PIN(D0, SCF_EDA_Diode_POS, B, SCF_EDA_Battery_POS); - EDA_PIN_ADD_PIN(D0, SCF_EDA_Diode_NEG, D1, SCF_EDA_Battery_POS); - EDA_PIN_ADD_PIN(D1, SCF_EDA_Diode_NEG, R1, 1); - EDA_PIN_ADD_PIN(R1, 0, B, SCF_EDA_Battery_NEG); - - EDA_PIN_ADD_PIN(R0, 1, B, SCF_EDA_Battery_POS); - EDA_PIN_ADD_PIN(R0, 0, D2, SCF_EDA_Diode_POS); - EDA_PIN_ADD_PIN(D2, SCF_EDA_Diode_NEG, D1, SCF_EDA_Diode_NEG); + EDA_PIN_ADD_PIN(D0, SCF_EDA_Diode_NEG, R0, 1); + EDA_PIN_ADD_PIN(R0, 0, D1, SCF_EDA_Diode_POS); + EDA_PIN_ADD_PIN(D1, SCF_EDA_Diode_NEG, B, SCF_EDA_Battery_NEG); scf_eboard__add_function(b, f); -- 2.25.1