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

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'