attachInterrupt() issue using Pinguino Micro 32

Asked by michael_w at 02:35 on 05 Sep 2017.

Hi,

On the old forum (I cant find it here) jwzumwalt had this issue too, as I do. The code comes up with compile errors. Can anyone suggest what is wrong please? Thanks. M

The error is:

C:\Users\M\Documents\Pinguino\v12\source\user.c:17:30: error: 'FALLING' undeclared (first use in this function) attachInterrupt(0, blink, FALLING); ^ C:\Users\M\Documents\Pinguino\v12\source\user.c:17:30: note: each undeclared identifier is reported only once for each function it appears in make: *** [compile] Error 1

Code =

volatile int state = 1;

void blink() { state = !state; }

void setup() { pinMode(USERLED, OUTPUT); pinMode(YELLOWLED, OUTPUT); attachInterrupt(0, blink, FALLING); }

void loop() { digitalWrite(YELLOWLED, state); digitalWrite(USERLED,!digitalRead(USERLED)); delay(500); }

Sign up or log in for live updates and to post messages.

I'm using the Pinguino IDE 12.0.39-beta.2 under Windows 10

Posted 05 Sep 2017, 02:51, 0 votes
michael_w
Rating: 0

Sorry, can't help you with the Pinguino IDE. This forum is for UECIDE. We support the Pinguino boards with the chipKIT core, but not the Pinguino IDE.

Posted 05 Sep 2017, 07:49, 0 votes
matt
Rating: 3

This site uses cookies to maintain your current login session and improve your browsing experience. By continuing to use this site you agree to the placing of these cookies on your computer or device.

About cookies | Close this popup