Modifier and Type | Field and Description |
---|---|
protected GpioPinPwmOutput |
pwm |
static int |
STOP_FREQUENCY |
Constructor and Description |
---|
PibrellaBuzzerImpl(GpioPinPwmOutput pwm) |
Modifier and Type | Method and Description |
---|---|
void |
buzz(int frequency)
start the buzzer at a specific frequency
|
void |
buzz(int frequency,
int duration)
start the buzzer at a specific frequency for a specified duration in milliseconds
|
void |
stop()
stop the buzzer
|
public static int STOP_FREQUENCY
protected final GpioPinPwmOutput pwm
public PibrellaBuzzerImpl(GpioPinPwmOutput pwm)
public void buzz(int frequency)
Buzzer
public void buzz(int frequency, int duration)
Buzzer
Copyright © 2012–2016 Pi4J. All rights reserved.