mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Speaker: Removed grove dependency
* Renamed all files from grovespeaker to speaker * Replaced all instances of grovespeaker with speaker * Updated all CMake files
This commit is contained in:

committed by
Noel Eck

parent
c759932ee6
commit
982065a7b7
@ -50,7 +50,7 @@ add_example(RelaySample relay)
|
||||
add_example(RotarySample rotary)
|
||||
add_example(GROVESCAMSample grovescam)
|
||||
add_example(SlideSample slide)
|
||||
add_example(GroveSpeakerSample grovespeaker)
|
||||
add_example(SpeakerSample speaker)
|
||||
add_example(TemperatureSample temperature)
|
||||
add_example(VDivSample vdiv)
|
||||
add_example(WaterSample water)
|
||||
|
@ -22,12 +22,12 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
public class GroveSpeakerSample {
|
||||
public class SpeakerSample {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
// Instantiate a Grove Speaker on digital pin D2
|
||||
upm_grovespeaker.GroveSpeaker speaker = new upm_grovespeaker.GroveSpeaker(2);
|
||||
// Instantiate a Speaker on digital pin D2
|
||||
upm_speaker.Speaker speaker = new upm_speaker.Speaker(2);
|
||||
|
||||
// Play all 7 of the lowest notes
|
||||
speaker.playAll();
|
||||
@ -37,4 +37,4 @@ public class GroveSpeakerSample {
|
||||
// ! [Interesting]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user