mirror of
https://github.com/dpeckett/arduino-appleii.git
synced 2024-11-29 13:49:21 +00:00
2798ae6d16
Uploading Current Source To Github
13 lines
239 B
C++
13 lines
239 B
C++
#define SPEAKER_PIN 5
|
|
|
|
void speaker_begin() {
|
|
pinMode(SPEAKER_PIN, OUTPUT);
|
|
digitalWrite(SPEAKER_PIN, LOW);
|
|
}
|
|
|
|
void speaker_toggle() {
|
|
static boolean state = false;
|
|
state = (state)?false:true;
|
|
digitalWrite(SPEAKER_PIN, state);
|
|
}
|