What scale value would you use with analogWrite() to generate a average vlotage of 3V on PWM pin 10 ?
Writes an analog value to a pin (PWM wave). It can be used to control the brightness of an LED or the speed of a motor. The pin will generate a constant rectangular wave of the given duty cycle after a call to analogWrite() until the next call to analogWrite(). Write() (or a call to digital) is a method for writing data to a file. On the same pin, use Read() or digitalWrite(). The scale value can be 40.
Comments
Leave a comment