i have an error when messing with LCDs(expected primary-expression before '=' t)


code: [select]
#include <liquidcrystal.h>

liquidcrystal lcd (a0, a1, a2, a3, a4, a5);

void setup(){
  lcd.clear();
  lcd.begin(16, 2);
}

void loop(){
  lcd.setcursor(0, 0);
  lcd.print("***zac ahlers***");
  int digit = digitalread(4);                //the error occurs here
  if (digit) = high) {
    lcd.clear();
    lcd.print(*****switch*****);
  }
}

= assigns value
== tests value


Arduino Forum > Using Arduino > Programming Questions > i have an error when messing with LCDs(expected primary-expression before '=' t)


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts