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
== tests value
Arduino Forum > Using Arduino > Programming Questions > i have an error when messing with LCDs(expected primary-expression before '=' t)
arduino
Comments
Post a Comment