No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
LICENSE
README.md
keywords.txt
library.properties

README.md

DMOscillator

An Arduino pin oscillator, based on micros(). Depends on DMTimer

It generates a square signal on the selected pin.

Can generate signal for a limited duration, a limited number of pulses, or infinitely.

The simplest use could be:

void setup(){
  /*
   * OscillationMode can be one of [duration, count, infinite]
   * In infinite mode, just pass the frequency.
   * In other modes, pass either the duration in us, or oscillation count as 2nd argument of oscillateHz()
   */
  osc = new DMOscillator(13, OscillationMode::infinite);

  osc->oscillateHz(5);
}

void loop(){
  //call update() at every loop
  osc->update();

}