News for hackers. Stuff that matters.
Re:Show HN: Atopile – Design circuit boards with code by voctor on Monday February 05, 2024 @04:43PM (#39267661)
By reading some code here 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!

Re:Show HN: Atopile – Design circuit boards with code by mawildoer on Monday February 05, 2024 @07:56PM (#39269390)
You'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.