Skip to content

Commit 6fd3349

Browse files
committed
Fix Tone signature
1 parent 8099105 commit 6fd3349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/Tone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void toneAccurateClock (uint32_t accurateSystemCoreClockFrequency)
5555
toneMaxFrequency = accurateSystemCoreClockFrequency / 2;
5656
}
5757

58-
void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
58+
void tone (unsigned char outputPin, unsigned int frequency, unsigned long duration)
5959
{
6060
// Configure interrupt request
6161
NVIC_DisableIRQ(TONE_TC_IRQn);
@@ -150,7 +150,7 @@ void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
150150
NVIC_EnableIRQ(TONE_TC_IRQn);
151151
}
152152

153-
void noTone (uint32_t outputPin)
153+
void noTone (uint8_t outputPin)
154154
{
155155
resetTC(TONE_TC);
156156
digitalWrite(outputPin, LOW);

0 commit comments

Comments
 (0)