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 8099105 commit 6fd3349Copy full SHA for 6fd3349
cores/arduino/Tone.cpp
@@ -55,7 +55,7 @@ void toneAccurateClock (uint32_t accurateSystemCoreClockFrequency)
55
toneMaxFrequency = accurateSystemCoreClockFrequency / 2;
56
}
57
58
-void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
+void tone (unsigned char outputPin, unsigned int frequency, unsigned long duration)
59
{
60
// Configure interrupt request
61
NVIC_DisableIRQ(TONE_TC_IRQn);
@@ -150,7 +150,7 @@ void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
150
NVIC_EnableIRQ(TONE_TC_IRQn);
151
152
153
-void noTone (uint32_t outputPin)
+void noTone (uint8_t outputPin)
154
155
resetTC(TONE_TC);
156
digitalWrite(outputPin, LOW);
0 commit comments