quick one for you guys. I usually hook up a color lcd manually, but i just got a 16x2 with a shield i am using for the first time. I dont know how to declare it. Usually i write in an array of all the pins i am using and that ends it. With the shield, I hook up to analog. For example A4 and A5, but this does not seem to help when I input into an array example:
#include <LiquidCrystal.h>
#include <Servo.h> // servo library
LiquidCrystal lcd (array); <— this is where i input all the wires but now it’s a shield!
#define buttonVal 4//permenantly define the button to digital pin 4
int buttonPin = 0;//added this code to announce that the button
//would be considered of (no power)
unsigned long nowMillis=0;
unsigned long debounceTimer=0;
Servo servo1; // servo control object
Servo servo2;
void setup()
{
lcd.begin(16, 2);<---- this is what is not being declared!
lcd.clear();
can anyone help??? Do i need a different library??