File tree 2 files changed +6
-1
lines changed
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::
108
108
set_threshold(128)
109
109
# Returns a representation of the sound pressure level in the range 0 to 255.
110
110
sound_level()
111
+ # Returns a representation of the sound pressure level in decibels (dB).
112
+ sound_level_db()
111
113
112
114
Pins
113
115
----
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Functions
60
60
61
61
* **event **: a sound event, such as ``SoundEvent.LOUD `` or
62
62
``SoundEvent.QUIET ``.
63
-
63
+
64
64
* **value **: The threshold level in the range 0-255. For example,
65
65
``set_threshold(SoundEvent.LOUD, 250) `` will only trigger if the sound is
66
66
very loud (>= 250).
@@ -70,6 +70,9 @@ Functions
70
70
* **return **: a representation of the sound pressure level in the range 0 to
71
71
255.
72
72
73
+ .. py :function :: sound_level_db()
74
+
75
+ * **return **: a representation of the sound pressure level in decibels (dB).
73
76
74
77
Example
75
78
=======
You can’t perform that action at this time.
0 commit comments