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:
Sisinty Sasmita Patra
2016-09-13 16:09:09 -07:00
committed by Noel Eck
parent c759932ee6
commit 982065a7b7
16 changed files with 58 additions and 58 deletions

View File

@ -154,7 +154,7 @@ add_example (yg1006)
add_example (wt5001)
add_example (ppd42ns)
add_example (mq303a)
add_example (grovespeaker)
add_example (speaker)
add_example (rfr359f)
add_example (biss0001)
add_example (rotaryencoder)

View File

@ -25,15 +25,15 @@
#include <unistd.h>
#include <iostream>
#include <signal.h>
#include "grovespeaker.hpp"
#include "speaker.hpp"
using namespace std;
int main ()
{
//! [Interesting]
// Instantiate a Grove Speaker on digital pin D2
upm::GroveSpeaker* speaker = new upm::GroveSpeaker(2);
// Instantiate a Speaker on digital pin D2
upm::Speaker* speaker = new upm::Speaker(2);
// Play all 7 of the lowest notes
speaker->playAll();