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

Interference with analog port #2

Closed
rmnrmnd opened this issue Oct 27, 2023 · 1 comment
Closed

Interference with analog port #2

rmnrmnd opened this issue Oct 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rmnrmnd
Copy link

rmnrmnd commented Oct 27, 2023

I am running the library on Arduino GIGA and the original display shield, It seems that it is interfering with analog functionalities. Whenever I call analogRead() the display will blink white for a frame.

Also, if you use this library in a sketch that also has an #include directive for Arduino_AdvancedAnalog.h, you will get the following compile error:

in file included from /home/x/Arduino/libraries/Arduino_AdvancedAnalog/src/AdvancedAnalog.h:25:0,
                 from /home/x/Arduino/libraries/Arduino_AdvancedAnalog/src/AdvancedADC.h:22,
                 from /home/x/Arduino/libraries/Arduino_AdvancedAnalog/src/Arduino_AdvancedAnalog.h:27,
                 from /home/x/Desktop/Giga1/Giga1.ino:5:
/home/x/.arduino15/packages/arduino/hardware/mbed_giga/4.0.8/cores/arduino/pinDefinitions.h:16:8: error: redefinition of 'struct _AnalogPinDescription'
 struct _AnalogPinDescription
        ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/x/Arduino/libraries/Arduino_GigaDisplayTouch/src/Arduino_GigaDisplayTouch.h:35:0,
                 from /home/x/Desktop/Giga1/Giga1.ino:2:
/home/x/.arduino15/packages/arduino/hardware/mbed_giga/4.0.8/cores/arduino/pinDefinitions.h:16:8: note: previous definition of 'struct _AnalogPinDescription'
 struct _AnalogPinDescription
        ^~~~~~~~~~~~~~~~~~~~~
@per1234 per1234 added the bug Something isn't working label Oct 27, 2023
@rmnrmnd
Copy link
Author

rmnrmnd commented Oct 27, 2023

Just as an update,

I solved the problem by removing #include "pinDefinition.h" and PinNameToIndex() functions. I do not know what is the problem, but seems like a duplicate inclusion bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants