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

@ -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)

View File

@ -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]
}
}
}