int irsens=0;
void setup(){
pinMode(irsens,OUTPUT);
Serial.begin(921600);
}
void loop(){
int irsens=digitalReal(0);
serial.println(irsens);
delay(1000);
}
int irsens=0;
void setup(){
pinMode(irsens,OUTPUT);
Serial.begin(921600);
}
void loop(){
int irsens=digitalReal(0);
serial.println(irsens);
delay(1000);
}
Please post the full error message
Does it contain a reference to the digitalReal() function ?
Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
PLease go back and fix your original post.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.