UNPKG

pi-spi

Version:

Simple async SPI library for Raspberry Pi

5 lines 277 B
// this one is intended for testing stub binding on platforms where not actually implemented var stubDevice = (process.platform === 'win32') ? "\\\\.\\NUL" : "/dev/null"; require("./").initialize(stubDevice).transfer(Buffer.from("-"), function (e,d) { console.log(e,d); });