Skip to content

Problem with new board - Invent One #5740

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

Closed
6 tasks done
OladapoAjala opened this issue Feb 8, 2019 · 1 comment · Fixed by #5741
Closed
6 tasks done

Problem with new board - Invent One #5740

OladapoAjala opened this issue Feb 8, 2019 · 1 comment · Fixed by #5741

Comments

@OladapoAjala
Copy link

OladapoAjala commented Feb 8, 2019

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP-12
  • Core Version: latest git hash or date
  • Development Env: Arduino IDE
  • Operating System: Windows|Ubuntu|MacOS

Settings in IDE

  • Module: other
  • Flash Mode: dio
  • Flash Size: 4MB/1MB
  • lwip Variant: v1.4|v2 Lower Memory
  • Reset Method: nodemcu
  • Flash Frequency: 40Mhz
  • CPU Frequency: 80Mhz
  • Upload Using: SERIAL
  • Upload Speed: 115200 (serial upload only)

Problem Description

Code fails to compile due to clash between inventone analog pin A0 (pins_arduino.h) and the reserved analog pin for arduino (commons.h)

#include <Arduino.h>

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println ("Welcome inventone to arduino");
  delay(1000);
}

Debug Messages

In file included from /home/jarvis/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/variants/inventone/pins_arduino.h:55:0,
                 from /home/jarvis/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Arduino.h:302,
                 from sketch/sketch_feb08a.ino.cpp:1:
/home/jarvis/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/variants/inventone/../generic/common.h:53:22: error: redefinition of 'const uint8_t A0'
 static const uint8_t A0 = PIN_A0;
                      ^
In file included from /home/jarvis/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Arduino.h:302:0,
                 from sketch/sketch_feb08a.ino.cpp:1:
/home/jarvis/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/variants/inventone/pins_arduino.h:50:22: error: 'const uint8_t A0' previously defined here
 static const uint8_t A0 = 0;
                      ^
exit status 1
Error compiling for board Invent One.
d-a-v added a commit to d-a-v/Arduino that referenced this issue Feb 8, 2019
d-a-v added a commit that referenced this issue Feb 8, 2019
@OladapoAjala
Copy link
Author

Thanks d-a-v, that was quick. Much love for Nigeria.

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

Successfully merging a pull request may close this issue.

1 participant