mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api/nxtdevices: add Temperature Sensor
This commit is contained in:
@@ -46,3 +46,7 @@ NXT Ultrasonic Sensor
|
||||
NXT Sound Sensor
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
.. autoclass:: pybricks.nxtdevices.SoundSensor
|
||||
|
||||
NXT Temperature Sensor
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
.. autoclass:: pybricks.nxtdevices.TemperatureSensor
|
||||
|
||||
@@ -147,3 +147,25 @@ class SoundSensor():
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class TemperatureSensor():
|
||||
"""LEGO® MINDSTORMS® NXT Ultrasonic Sensor."""
|
||||
|
||||
def __init__(self, port):
|
||||
"""
|
||||
|
||||
Arguments:
|
||||
port (Port): Port to which the sensor is connected.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def temperature(self):
|
||||
"""Measure the temperature.
|
||||
|
||||
Returns:
|
||||
:ref:`temperature`: Measured temperature.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user