-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented temperature module and added examples for it. Added new contributor. Adaptations to fit pygatt 3.0.0 Made Windows building possible; still not runnable on Windows due to missing BLE lib in Python. Updated documentation and some docstrings. Fixes #21
- Loading branch information
Showing
25 changed files
with
509 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,10 @@ MetaWear modules | |
base | ||
accelerometer | ||
gyroscope | ||
magnetometer | ||
barometer | ||
led | ||
settings | ||
haptic | ||
switch | ||
temperature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. _modules_temperature: | ||
|
||
Temperature module | ||
================== | ||
|
||
The PyMetaWear implementation of the ``libmetawear`` | ||
temperature module. | ||
|
||
It is initialized at the creation of the :py:class:`~MetaWearClient` | ||
client and can then be accessed in the ``temperature`` | ||
attribute of the client. | ||
|
||
Example usage: | ||
|
||
.. code-block:: python | ||
from pymetawear.client import MetaWearClient | ||
c = MetaWearClient('DD:3A:7D:4D:56:F0') | ||
def temperature_callback(data): | ||
"""Handle a temperature notification data.""" | ||
epoch = data[0] | ||
temp = data[1] | ||
print("[{0}] Temperature {1} C".format(epoch, temp)) | ||
# Enable notifications and register a callback for them. | ||
c.temperature.notifications(temperature_callback) | ||
# Trigger temperature notification. | ||
c.temperature.read_temperature() | ||
API | ||
--- | ||
|
||
.. automodule:: pymetawear.modules.temperature | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.