ceu-lang / ceu

The Programming Language Céu

Home Page:http://www.ceu-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling error when declaring multiple inputs

guilhermesimas opened this issue · comments

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

Belongs to ceu-arduino repository. Closing the issue