Download Print this page

DFRobot FireBeetle ESP32-E Manual page 44

Advertisement

q
y
q
duration:the duration of the tone in milliseconds (optional). Allowed data types: unsigned long.
noTone(pin)
Description: Stops the generation of a square wave triggered by tone(). Has no effect if no tone is being generated.
Parameter:
pin:the Arduino pin on which to stop generating the tone
frequency:the frequency of the tone in hertz. Allowed data types: unsigned int.
duration:the duration of the tone in milliseconds (optional). Allowed data types: unsigned long.
8.4 Interrupt
attachInterrupt(digitalPinToInterrupt(pin), ISR, mode)
Description: External Interrupts
Parameter:
pin:the Arduino pin number.
ISR:the ISR to call when the interrupt occurs; this function must take no parameters and return nothing. This function is sometimes
referred to as an interrupt service routine.
mode:defines when the interrupt should be triggered. Four constants are predefined as valid values:
detachInterrupt(digitalPinToInterrupt(pin))
Description: Turns off the given interrupt.
Parameter:
interrupt: the number of the interrupt to disable
pin: the Arduino pin number of the interrupt to disable
interrupts()
y
yp
g

Advertisement

loading
Need help?

Need help?

Do you have a question about the FireBeetle ESP32-E and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for DFRobot FireBeetle ESP32-E

This manual is also suitable for:

Dfr0654