From: yu.dongliang <18588496441@163.com> Date: Wed, 27 Sep 2023 14:56:43 +0000 (+0800) Subject: test/main.c X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=7a057a3d2358f798e752d0a74369709ecb41bb3f;p=ses.git test/main.c --- 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);