Skip to content

Commit

Permalink
added tone() and noTone() stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
kwisii committed Aug 4, 2022
1 parent 70a80ee commit 5c062e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cores/epoxy/Arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ unsigned long micros() {
return us;
}

void tone(uint8_t _pin, unsigned int frequency, unsigned long duration)
{
return;
}

void noTone(uint8_t _pin)
{
return;
}

void delay(unsigned long ms) {
usleep(ms * 1000);
}
Expand Down
3 changes: 3 additions & 0 deletions cores/epoxy/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ void enableTerminalEcho();

}

void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
void noTone(uint8_t _pin);

// WMath prototypes
long random(long);
long random(long, long);
Expand Down

0 comments on commit 5c062e8

Please sign in to comment.