user29596: I am using an L298N motor control. I want to use my 2*16 LCD. Can I use the code like this?
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(12, 9, 4, 5, 6, 7);

// Motor Control
#define enableA  3
#define enableB  11
#define in1 4
#define in2 5
#define in3 6
#define in4 7


user16662: Using that pin configuration you'll have several problems despite you'll use enable pin.
I would use a I2C module for 16x2 lcd like this https://www.amazon.com/SainSmart-Serial-Module-Display-Arduino/dp/B00813HBEQ
Control 16x2 lcd with I2C.

29596: <p>I am using an L298N motor control. I want to use my 2*16 LCD. Can I use the code like this?</p>

<pre><code>// include the library code:
#include &lt;LiquidCrystal.h&gt;

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(12, 9, 4, 5, 6, 7);

// Motor Control
#define enableA  3
#define enableB  11
#define in1 4
#define in2 5
#define in3 6
#define in4 7
</code></pre>
 16662: <p>Using that pin configuration you'll have several problems despite you'll use enable pin.</p>

<p>I would use a I2C module for 16x2 lcd like this <a href="https://rads.stackoverflow.com/amzn/click/B00813HBEQ" rel="nofollow noreferrer">https://www.amazon.com/SainSmart-Serial-Module-Display-Arduino/dp/B00813HBEQ</a></p>

<p>Control 16x2 lcd with I2C.</p>
