Square wave in different frequencies ?


i know subject came up, still there no 1 truth in google
i able output square ( or pwm) on digital pin , , set frequency 0-20khz .

is there library ? can done in background using timers ? affect millis() ?

seems there no pure solution- 1 that, , not affecting whole system.
 
thanks.

tone(pin,20000);  // min freq 31 hertz

https://www.arduino.cc/en/reference/tone




Arduino Forum > Using Arduino > Programming Questions > Square wave in different frequencies ?


arduino

Comments

Popular posts from this blog

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading