Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error when declaring multiple inputs #6

Open
guilhermesimas opened this issue Mar 28, 2017 · 1 comment
Open

Compiling error when declaring multiple inputs #6

guilhermesimas opened this issue Mar 28, 2017 · 1 comment
Labels

Comments

@guilhermesimas
Copy link
Collaborator

This code compiles:

#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);
^

@fsantanna fsantanna added the bug label Mar 28, 2017
@fsantanna
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants