You are reading a single comment by @possmann and its replies.
Click here to read the full conversation.
-
@DrAzzy: just a little code review question: why do you store this.spi / this.cs inside the constructor? And why not use this.spi / this.cs in the getTemp?
I would have expected this:
MAX31855.prototype.getTemp = function () { var d = this.spi.send("\0\0\0\0", this.cs); ... }
Otherwise i don't understand the constructor.
Modularized.
I posted the module - does this work?
Module code: