We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7713854 commit 02a5e51Copy full SHA for 02a5e51
CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
## [Unreleased]
8
### Added
9
- Definition of `LED_BUILTIN`, first reported by `dfrencham` on GitHub
10
+- Stubs for `tone` and `noTone`, first suggested by `dfrencham` on GitHub
11
12
### Changed
13
cpp/arduino/Godmode.h
@@ -91,6 +91,11 @@ void analogWrite(uint8_t, int);
91
#define analogReadResolution(...) _NOP()
92
#define analogWriteResolution(...) _NOP()
93
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
+
99
100
GodmodeState* GODMODE();
101
0 commit comments