From f06a97ed065ac6251c7dee00f34492ec7d0e6c12 Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Fri, 14 Aug 2020 15:57:35 +0200 Subject: [PATCH] separate pages for sensors --- .../pycom/expansionboards/L76GNSS.md | 24 +++++++++++++++++++ .../pycom/expansionboards/LIS2HH12.md | 0 .../pycom/expansionboards/LTR329ALS01.md | 0 .../pycom/expansionboards/MFRC6300.md | 0 .../pycom/expansionboards/SI7006A20.md | 0 5 files changed, 24 insertions(+) create mode 100644 content/firmwareapi/pycom/expansionboards/L76GNSS.md create mode 100644 content/firmwareapi/pycom/expansionboards/LIS2HH12.md create mode 100644 content/firmwareapi/pycom/expansionboards/LTR329ALS01.md create mode 100644 content/firmwareapi/pycom/expansionboards/MFRC6300.md create mode 100644 content/firmwareapi/pycom/expansionboards/SI7006A20.md diff --git a/content/firmwareapi/pycom/expansionboards/L76GNSS.md b/content/firmwareapi/pycom/expansionboards/L76GNSS.md new file mode 100644 index 0000000..383ae19 --- /dev/null +++ b/content/firmwareapi/pycom/expansionboards/L76GNSS.md @@ -0,0 +1,24 @@ +--- +title: "L76GNSS GPS" +--- + + +## GPS with GLONASS (Quectel L76-L GNSS) + +Pytrack has a GPS (with GLONASS) that provides outputs longitude/latitude, speed and other information about the Pytrack's location. + +## Constructors + +### class L76GNSS(pytrack = None, sda = 'P22', scl = 'P21', timeout = None) + +Creates a `L76GNSS` object, that will return values for longitude and latitude. Constructor must be passed a Pytrack or I2C object to successfully construct. Set the `timeout` to a time period (in seconds) for the GPS to search for a lock. If a lock is not found by the time the `timeout` has expired, the `coordinates` method will return `(None, None)`. + +## Methods + +### L76GNSS.coordinates(debug = False) + +Read the longitude and latitude from the `L76GNSS`. Returns a **tuple** with the longitude and latitude. With `debug` set to `True` the output from the GPS is verbose. + +{{% hint style="info" %}} +Please note that more functionality is being added weekly to these libraries. If a required feature is not available, feel free to contribute with a pull request at the [Libraries GitHub repository](https://github.com/pycom/pycom-libraries) +{{% /hint %}} \ No newline at end of file diff --git a/content/firmwareapi/pycom/expansionboards/LIS2HH12.md b/content/firmwareapi/pycom/expansionboards/LIS2HH12.md new file mode 100644 index 0000000..e69de29 diff --git a/content/firmwareapi/pycom/expansionboards/LTR329ALS01.md b/content/firmwareapi/pycom/expansionboards/LTR329ALS01.md new file mode 100644 index 0000000..e69de29 diff --git a/content/firmwareapi/pycom/expansionboards/MFRC6300.md b/content/firmwareapi/pycom/expansionboards/MFRC6300.md new file mode 100644 index 0000000..e69de29 diff --git a/content/firmwareapi/pycom/expansionboards/SI7006A20.md b/content/firmwareapi/pycom/expansionboards/SI7006A20.md new file mode 100644 index 0000000..e69de29