Hi
I have started a piece of code to use for a project but upon creating an if statement I got an error message
if (digitalRead)stopU) == LOW) {
^
exit status 1
expected ';' before ')' token
in this code
#define CW 7
#define ACW 8
#define switchA 0
#define switchB 1
#define stopU 2
#define stopB 3
void setup() {
// put your setup code here, to run once:
pinMode(CW, OUTPUT);
pinMode(ACW, OUTPUT);
pinMode(switchA, INPUT_PULLUP);
pinMode(switchB, INPUT_PULLUP);
pinMode(stopU, INPUT_PULLUP);
pinMode(stopB, INPUT_PULLUP);
}
void loop()
{
if (digitalRead)stopU) == LOW) {
digitalWrite(CW, HIGH);
}
}
It is probably obvious to you but it has stumped me
Thanks for the help