Skip to content

Commit 02a5e51

Browse files
committed
add stubs for tone and noTone
1 parent 7713854 commit 02a5e51

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
### Added
99
- Definition of `LED_BUILTIN`, first reported by `dfrencham` on GitHub
10+
- Stubs for `tone` and `noTone`, first suggested by `dfrencham` on GitHub
1011

1112
### Changed
1213

cpp/arduino/Godmode.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ void analogWrite(uint8_t, int);
9191
#define analogReadResolution(...) _NOP()
9292
#define analogWriteResolution(...) _NOP()
9393

94+
// TODO: issue #26 to track the commanded state here
95+
inline void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0) {}
96+
inline void tone(uint8_t _pin, unsigned int frequency) {}
97+
inline void noTone(uint8_t _pin) {}
98+
9499

95100
GodmodeState* GODMODE();
96101

0 commit comments

Comments
 (0)