Skip to content

Conflict with Sparkfun Alpha Library #5

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
sylgeist opened this issue Nov 30, 2021 · 1 comment
Closed

Conflict with Sparkfun Alpha Library #5

sylgeist opened this issue Nov 30, 2021 · 1 comment

Comments

@sylgeist
Copy link

sylgeist commented Nov 30, 2021

Subject of the issue

Warning when including both Qwiic button and Alphanumeric libraries

Your workbench

Independent of board. Tested with Artemis ATP and Redboard
Arduino 1.8.13 on MacOS 12.0.1
Qwiic Button 2.0.5
Qwiic Alphanumeric 2.2.5

Steps to reproduce

If you have both:

#include "SparkFun_Alphanumeric_Display.h"
#include "SparkFun_Qwiic_Button.h"

in a project you receive a warning on compilation (see below)

Expected behavior

Should compile without warning

Actual behavior

In file included from /Documents/Arduino/ShuttleOS/ShuttleOS.ino:16:
/Documents/Arduino/libraries/SparkFun_Qwiic_Button_and_Qwiic_Switch_Library/src/SparkFun_Qwiic_Button.h:29: warning: "DEFAULT_ADDRESS" redefined
 #define DEFAULT_ADDRESS 0x6F //default I2C address of the button
 
In file included from /Documents/Arduino/ShuttleOS/ShuttleOS.ino:14:
/Documents/Arduino/libraries/SparkFun_Qwiic_Alphanumeric_Display_Arduino_Library/src/SparkFun_Alphanumeric_Display.h:32: note: this is the location of the previous definition
 #define DEFAULT_ADDRESS 0x70 // Default I2C address when A0, A1 are floating
makesaur added a commit to makesaur/SparkFun_Qwiic_Button_Arduino_Library that referenced this issue Mar 16, 2022
PaulZC added a commit that referenced this issue Jul 12, 2022
Renamed DEFAULT_ADDRESS to avoid conflicts with other libs #5
@PaulZC
Copy link
Contributor

PaulZC commented Jul 20, 2022

Resolved in v2.0.6 - thank you for reporting and apologies for the delay!

Paul

@PaulZC PaulZC closed this as completed Jul 20, 2022
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

No branches or pull requests

2 participants