You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2017/01/19 23:35:05 UTC

[16/29] incubator-mynewt-site git commit: Updated with Arduino Primo new Pins

Updated with Arduino Primo new Pins


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/bd8485be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/bd8485be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/bd8485be

Branch: refs/heads/develop
Commit: bd8485be71ce58b56b9874cff19983a56bb51345
Parents: df4bd99
Author: David G. Simmons <sa...@mac.com>
Authored: Fri Jan 13 12:16:47 2017 -0500
Committer: David G. Simmons <sa...@mac.com>
Committed: Tue Jan 17 10:13:49 2017 -0500

----------------------------------------------------------------------
 docs/os/tutorials/air_quality_sensor.md | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bd8485be/docs/os/tutorials/air_quality_sensor.md
----------------------------------------------------------------------
diff --git a/docs/os/tutorials/air_quality_sensor.md b/docs/os/tutorials/air_quality_sensor.md
index 8b62396..9965253 100644
--- a/docs/os/tutorials/air_quality_sensor.md
+++ b/docs/os/tutorials/air_quality_sensor.md
@@ -494,6 +494,17 @@ The sensor has a serial port connection, and that's how you are going to connect
 We're using one for our shell/console. It also has a second UART set up as a 'bit-bang' UART but since the SenseAir only needs to
 communicate at 9600 baud, this bit-banged uart is plenty fast enough.
 
+You'll have to make a small change to the `syscfg.yml` file in the hw/bsp/arduino_primo_nrf52 directory to chang the pin definitions 
+for this second UART. Those changes are as follows:
+
+```no-highlight
+    UART_0_PIN_TX:
+        description: 'New Pin Assignment'
+        value: 23
+    UART_0_PIN_RX:
+        description: 'New Pin Assignment'
+        value: 24
+```
 
 
 With this in place, you can refer to serial port where your SenseAir sensor is by a logical number. This makes the code more platform independent - you could connect this sensor to another board, like Olimex. You will also use the HAL UART abstraction to do the UART port setup and data transfer. That way you don't need to have any platform dependent pieces within your little driver.
@@ -798,6 +809,7 @@ main(int argc, char **argv)
     ....
     }
 ```
+
 You can see from the code that you are using the HAL interface to open a UART port, and using OS 
 semaphore as a way of blocking the task when waiting for read response to come back from the sensor.