|
|
@@ -2,11 +2,12 @@ package boebot;
|
|
|
public class FysiekeIndicator{
|
|
|
private Led led1;
|
|
|
private Led led2;
|
|
|
+ private Speaker speaker1;
|
|
|
|
|
|
public FysiekeIndicator(){
|
|
|
led1 = new Led(1);
|
|
|
led2 = new Led(10);
|
|
|
- // speaker = new Speaker(10);
|
|
|
+ speaker = new Speaker(3);
|
|
|
}
|
|
|
public void setLed1(boolean state){
|
|
|
led1.setState(state);
|
|
|
@@ -14,4 +15,7 @@ public class FysiekeIndicator{
|
|
|
public void setLed2(boolean state){
|
|
|
led1.setState(state);
|
|
|
}
|
|
|
-}
|
|
|
+ public void playSound(int frequency, int duration){
|
|
|
+ speaker1.playSound(frequency, duration);
|
|
|
+ }
|
|
|
+}
|