We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905577a commit 477c214Copy full SHA for 477c214
docs/microbit_micropython_api.rst
@@ -108,6 +108,8 @@ The Microphone is accessed via the `microphone` object::
108
set_threshold(128)
109
# Returns a representation of the sound pressure level in the range 0 to 255.
110
sound_level()
111
+ # Returns a representation of the sound pressure level in decibels (dB).
112
+ sound_level_db()
113
114
Pins
115
----
docs/microphone.rst
@@ -91,6 +91,10 @@ Functions
91
92
:return: A representation of the sound pressure level in the range 0 to 255.
93
94
+.. py:function:: sound_level_db()
95
+
96
+ :return: A representation of the sound pressure level in decibels (dB)
97
+ in the range of 52.0 to 110.0 dB.
98
99
Example
100
=======
0 commit comments