Hacker News new | past | comments | ask | show | jobs | submit login

We do have interfaces! They are super useful, I am very stoked that I dont have to remember which way around MISO/MOSI go any more.

Interfaces are just a collection of signals eg

  interface I2C:
    signal sda
    signal scl
    signal gnd
you can connect two together like so: micro.i2c ~ sensor.i2c

Importing schematics would be possible, but IMO not super valuable as all we could import would be the raw connectivity, a big benefit of our language is being able to add a layer of abstraction on that.




How does this handle connecting two microcontrollers with one being a SPI master and one being a slave? Or connecting UART between two devices?


Today, poorly. We just do a dumb matching of signal names. I imagine we will do something like add a property to the interfaces on each device.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: