public interface Buzzer
Modifier and Type | Field and Description |
---|---|
static int |
STOP_FREQUENCY |
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
|
static final int STOP_FREQUENCY
void buzz(int frequency)
frequency
- void buzz(int frequency, int duration)
frequency
- duration
- number of millisecondsvoid stop()
Copyright © 2012–2016 Pi4J. All rights reserved.