Wed 2017.01.25
Thank you Gordon, that answered my first two questions.
Anybody see anything glaringly obvious as to why this doesn't return the expected result?
Using the existing module 'read' function and adding a function to the instance object, while maintaining the same existing coding format.
mfrc522Instance.getver = function() { var ver = this.r(R.VERSION); console.log("[766] version: " + ver); };
Using the spec p.37
37h VersionReg shows the software version
and p.66
9.3.4.8 VersionReg register Shows the MFRC522 software version
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wed 2017.01.25
Thank you Gordon, that answered my first two questions.
Anybody see anything glaringly obvious as to why this doesn't return the expected result?
Using the existing module 'read' function and adding a function to the instance object, while maintaining the same existing coding format.
Using the spec p.37
37h VersionReg shows the software version
and p.66
9.3.4.8 VersionReg register Shows the MFRC522 software version