EasyManua.ls Logo

DFRobot FireBeetle ESP32-E - Page 44

DFRobot FireBeetle ESP32-E
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
q y q y yp g
durationthe 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:
pinthe Arduino pin on which to stop generating the tone
frequencythe frequency of the tone in hertz. Allowed data types: unsigned int.
durationthe duration of the tone in milliseconds (optional). Allowed data types: unsigned long.
8.4 Interrupt
attachInterrupt(digitalPinToInterrupt(pin), ISR, mode)
Description: External Interrupts
Parameter:
pinthe Arduino pin number.
ISRthe 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.
modedefines 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()