Answer to Question #267051 in C++ for pakie

Question #267051

What scale value would you use with analogWrite() to generate a average vlotage of 0V on PWM pin 10 ?




1
Expert's answer
2021-11-19T17:16:32-0500
int pin = 10;     
int val = 0;   


void loop() {
  val = analogRead(pin);  
  analogWrite(ledPin, val); 
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS