Computers, Development Boards & Shields
Educational & Robotics Kits
Electronic Sensors
Motors & Controllers
Communication & Display
Electronic Components
Soldering & Lab Tools

0
Should I ground an Arduino/Versalino pin with analogwrite or digitalwrite?

Which is the best way to ground a pin using Versalino/Arduino?

digitalwrite(pin,LOW)

or

using pwm pin
analogwrite(pin,0)

1 Answer

0

digitalwrite(pin, LOW); should work on all pins on both the Arduino and Versalino, and is faster to run and less difficult to accidentally cause a pwm frequency on PWM pins.

Your Answer

No comments yet.

Leave a Reply