tinygo-org / playground

TinyGo playground and VS Code extension
https://play.tinygo.org/
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

Add support for button part #13

Closed deadprogram closed 2 years ago

deadprogram commented 2 years ago

We need to have support for a "button" part so we can make it interactive.

aykevl commented 2 years ago

Yes, I agree. I've been thinking about it but buttons are a bit complicated to model because they make and break a connection. This means we'd have to reconstruct the netlist on each press and release. Maybe there is a cheaper way to do it, but I'm still thinking about it.

(This would also be needed to implement reset buttons, which would be a nice feature).

aykevl commented 2 years ago

Fixed in 557076557c2b865c27a0f90b549861e3e0c181ba