diff --git a/hardware/mcp3008/README.md b/hardware/mcp3008/README.md index 0914d49c..5ab83009 100644 --- a/hardware/mcp3008/README.md +++ b/hardware/mcp3008/README.md @@ -37,6 +37,8 @@ select the channel dynamically. If so then the payload must be a value from 0 to You can also select device id 0 or 1 (CE0 or CE1) depending on how you have wired up your device. Defaults to CE0. +And you can also select the SPI bus number 0 or 1 depending on how you have wired up your device. Defaults to 0 for spidev0. + Outputs a numeric `msg.payload` with a range of 0 to 1023, where 0 = 0V and 1023 = 3.3V (assuming you use the default 3.3V voltage reference). **Hint**: use a `range` node to adjust the values to the range you want. diff --git a/hardware/mcp3008/package.json b/hardware/mcp3008/package.json index bf89c672..f9a6a028 100644 --- a/hardware/mcp3008/package.json +++ b/hardware/mcp3008/package.json @@ -1,9 +1,9 @@ { "name" : "node-red-node-pi-mcp3008", - "version" : "0.1.1", + "version" : "0.2.0", "description" : "A Node-RED node to read from the MCP3008 Analogue to Digital Converter", "dependencies" : { - "mcp-spi-adc": "^1.0.0" + "mcp-spi-adc": "^2.0.3" }, "repository" : { "type":"git", diff --git a/hardware/mcp3008/pimcp3008.html b/hardware/mcp3008/pimcp3008.html index 59c2dbcc..3fafb671 100644 --- a/hardware/mcp3008/pimcp3008.html +++ b/hardware/mcp3008/pimcp3008.html @@ -33,6 +33,13 @@ +