You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include "arduino/arduino.ceu"
input int PIN_01;
// input int PIN_02;
This code does NOT compile:
#include "arduino/arduino.ceu"
input int PIN_01;
input int PIN_02;
Compiler error (when declaring PIN_09 and PIN_08 as inputs):
In function 'void setup()':
pins_inputs.c.h:66: error: redeclaration of 'int tmp'
int tmp = digitalRead(9);
^
/tmp/arduino_build_353043/sketch/pins_inputs.c.h:59:9: note: 'int tmp' previously declared here
int tmp = digitalRead(8);
^
The text was updated successfully, but these errors were encountered:
This code compiles:
This code does NOT compile:
Compiler error (when declaring PIN_09 and PIN_08 as inputs):
In function 'void setup()':
pins_inputs.c.h:66: error: redeclaration of 'int tmp'
int tmp = digitalRead(9);
^
/tmp/arduino_build_353043/sketch/pins_inputs.c.h:59:9: note: 'int tmp' previously declared here
int tmp = digitalRead(8);
^
The text was updated successfully, but these errors were encountered: