You are reading a single comment by @MichaelPralow and its replies. Click here to read the full conversation.
  • right now i need to write the following to create a working SPI object

    var spi = new SPI(); // or SPI1, 2,3
    spi.setup(options);
    

    i would like to be able to use

    var spi = new SPI().setup(options);
    // or even better
    var spi = new SPI(options);
    

    maybe there is some downside to my approach, i would like to know it :-)

About