GroveSpeaker Class
- ID: grovespeaker
- Name: Speaker Module
- Category: sound
- Manufacturer: seeed
- Connection: gpio
- Kit: hak
UPM module for the Grove Speaker . This sensor can generate different tones and sounds depending on the frequency of the input signal.
Item Index
Methods
Methods
GroveSpeaker
(
Number
-
pin
Grove Speaker constructor
Parameters:
-
pin
NumberDigital pin to use
Returns:
Number:
playAll
()
Plays all alto notes (lowest notes)
playSound
(
-
letter
-
sharp
-
vocalWeight
Plays a sound and a note whether it's sharp or not
Parameters:
-
letter
StringCharacter name of the note ('a', 'b', 'c', 'd', 'e', 'f', or 'g')
-
sharp
BooleanIf true, plays a sharp version of the note; otherwise, does not play the note
-
vocalWeight
StringString to determine whether to play a low ("low"), a medium ("med"), or a high ("high") note