From c78ac48fa554464f693747edfd4023e6759096bf Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 19 Oct 2021 20:34:08 +0100 Subject: [PATCH] Fix MCP3xxx Readme --- hardware/mcp3008/README.md | 2 +- hardware/mcp3008/package.json | 2 +- hardware/mcp3008/pimcp3008.html | 21 +++++++++++---------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hardware/mcp3008/README.md b/hardware/mcp3008/README.md index 5ab83009..22b89b52 100644 --- a/hardware/mcp3008/README.md +++ b/hardware/mcp3008/README.md @@ -39,7 +39,7 @@ You can also select device id 0 or 1 (CE0 or CE1) depending on how you have wire 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). +Outputs a numeric `msg.payload` with a range of 0 to 1023 for MCP30XX family, where 0 = 0V and 1023 = 3.3V (assuming you use the default 3.3V voltage reference). For MCP32XX and MCP33XX the range returned is 0 to 4095. **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 a1d17f9d..afbdb534 100644 --- a/hardware/mcp3008/package.json +++ b/hardware/mcp3008/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-mcp3008", - "version" : "0.4.0", + "version" : "0.4.2", "description" : "A Node-RED node to read from the MCP3008 Analogue to Digital Converter", "dependencies" : { "mcp-spi-adc": "^3.2.0" diff --git a/hardware/mcp3008/pimcp3008.html b/hardware/mcp3008/pimcp3008.html index 63659e02..e6e9894f 100644 --- a/hardware/mcp3008/pimcp3008.html +++ b/hardware/mcp3008/pimcp3008.html @@ -48,16 +48,17 @@