What scale value would you use with analogWrite() to generate a average vlotage of 0V on PWM pin 10 ?
int pin = 10; int val = 0; void loop() { val = analogRead(pin); analogWrite(ledPin, val); }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment