File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ The Microphone is accessed via the `microphone` object::
108108 set_threshold(128)
109109 # Returns a representation of the sound pressure level in the range 0 to 255.
110110 sound_level()
111+ # Returns a representation of the sound pressure level in decibels (dB).
112+ sound_level_db()
111113
112114Pins
113115----
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Functions
6060
6161 * **event **: a sound event, such as ``SoundEvent.LOUD `` or
6262 ``SoundEvent.QUIET ``.
63-
63+
6464 * **value **: The threshold level in the range 0-255. For example,
6565 ``set_threshold(SoundEvent.LOUD, 250) `` will only trigger if the sound is
6666 very loud (>= 250).
@@ -70,6 +70,9 @@ Functions
7070 * **return **: a representation of the sound pressure level in the range 0 to
7171 255.
7272
73+ .. py :function :: sound_level_db()
74+
75+ * **return **: a representation of the sound pressure level in decibels (dB).
7376
7477Example
7578=======
You can’t perform that action at this time.
0 commit comments