cgnuino
Public Member Functions | List of all members
CgnTone Class Reference

Emits asynchroneous tone output.

#include <cgnuino.h>

Public Member Functions

 CgnTone (byte)
 Consructor. More...
 
void update ()
 Stop the tone when finished determined time length of output. More...
 
void out (uint32_t, uint16_t=440)
 Starts a tone out from a pin for determined time length. More...
 

Constructor & Destructor Documentation

CgnTone::CgnTone ( byte  p)
Parameters
pPin number for digital-out to a piezo buzzer.

Member Function Documentation

void CgnTone::out ( uint32_t  l,
uint16_t  f = 440 
)
Parameters
lTime length of output in [ms].
fFrequency of tone output in [Hz].
void CgnTone::update ( )
Note
For a normal usage, this method is intended to be called once inside loop function.

The documentation for this class was generated from the following files: