aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2017-01-22 16:50:53 +0100
committerKing Kévin <kingkevin@cuvoodoo.info>2017-01-22 16:50:53 +0100
commit7d7b18985cb388406ffd5b0419ba533c92020ac0 (patch)
tree5fcf7d9b50e75b3a42d229f22734b9a1ec3cbfea
parentdc776f4ebea9c78adc54ceb0252a272dd9d9c94a (diff)
move RS-485 DE/RE pin to PB12light
-rw-r--r--README.md4
-rw-r--r--lib/sensor_sdm120.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5c2762d..0daf772 100644
--- a/README.md
+++ b/README.md
@@ -88,8 +88,8 @@ Connections 3xSDM120 <-> board:
- VCC; +5V
- GND; ground
- DI; PB10, USART3_TX
-- DE; PB1 (shared with RE since one is active low while the other is active high)
-- RE; PB1 (shared with DE since one is active low while the other is active high)
+- DE; PB12 (shared with RE since one is active low while the other is active high)
+- RE; PB12 (shared with DE since one is active low while the other is active high)
- RO; PB11, USART3_RX
ESP8266
diff --git a/lib/sensor_sdm120.c b/lib/sensor_sdm120.c
index 76c6510..77f4951 100644
--- a/lib/sensor_sdm120.c
+++ b/lib/sensor_sdm120.c
@@ -45,7 +45,7 @@
* @{
*/
#define SENSOR_SDM120_REDE_PORT B /**< GPIO port for RS-485 receiver and driver output enable signal */
-#define SENSOR_SDM120_REDE_PIN 1 /**< GPIO pin for RS-485 receiver and driver output enable signal */
+#define SENSOR_SDM120_REDE_PIN 12 /**< GPIO pin for RS-485 receiver and driver output enable signal */
/** @} */
/** @defgroup sensor_sdm120_timer timer peripheral to enforce waiting time between messages