Report Bug
Qus : Which Function is used for PWM pin in Arduino?
QusArduino में PWM पिन के लिए किस फंक्शन का उपयोग किया जाता है?

A. digitalWrite()
B. serial.print ( )
C. analogWrite()
D. pinMode()


Solution
C. analogWrite()



Explanation
The Arduino IDE has a built in function “analogWrite()” which can be used to generate a PWM signal. The frequency of this generated signal for most pins will be about 490Hz and we can give the value from 0-255 using this function.



Report Bug