STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
Tone.cpp File Reference

Tone generation: tone() and noTone(), based on a hardware timer. More...

#include "Arduino.h"
#include "HardwareTimer.h"

Functions

void tone (uint8_t _pin, unsigned int frequency, unsigned long duration)
 
void noTone (uint8_t _pin)
 
void noTone (uint8_t _pin, bool destruct)
 Stop tone generation on pin.
 

Detailed Description

Tone generation: tone() and noTone(), based on a hardware timer.

Function Documentation

◆ noTone()

void noTone ( uint8_t  _pin,
bool  destruct 
)

Stop tone generation on pin.

Parameters
_pinThe pin on which to stop tone generation.
destructIf true, the tone timer is deinitialized and deleted. If false, it is only paused.