Search found 1 match

by Tercero
Fri Mar 24, 2017 5:53 pm
Forum: General Q&A
Topic: AttachInterrupt on NodeMCU
Replies: 1
Views: 4411

Re: AttachInterrupt on NodeMCU

attachInterrupt expect a pointer to the function, not its returned value. If you call doSth(), you get the returned value, in your case, it's a void.
Try to remove the parenthesis after doSth:

Code: Select all

attachInterrupt(D4, doSth, CHANGE);

Go to advanced search