5 ms·
By reading some code here https://github.com/Timot05/logic-card/blob/main/elec/src/logic-card.ato https://github.com/Timot05/logic-card/blob/main/elec/src/log..
by voctor 3y ago
By reading some code here https://github.com/Timot05/logic-card/blob/main/elec/src/logic-card.ato https://github.com/Timot05/logic-card/blob/main/elec/src/log...
I wonder if with directional arrows, instead of writing "out ~ switch.in; switch.out ~ power.gnd", we could write "out ~> switch ~> power.gnd" instead?
But without distinction between in and out ports it may not be possible to check if connections are valid ones.
Anyway, this project really makes me want to learn electronics! Congrats!
- mawildoer 3y agoYou're absolutely right! We've been thinking very similar ways about "dipole" components and how to best do this; and I think you've nailed it. What about using dunder __in__ and __out__ attributes? Easy enough to implement for us and overload for folks in the future.