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

Problem Uploading #1

Open
Eldre1 opened this issue Mar 8, 2021 · 1 comment
Open

Problem Uploading #1

Eldre1 opened this issue Mar 8, 2021 · 1 comment

Comments

@Eldre1
Copy link

Eldre1 commented Mar 8, 2021

I'm using an Arduino Pro Mini. The SDA and SCL pins are still A5 and A4. However I get this same error when I try to upload to an Uno so I don't think it is a board issue. This code looks awesome and I want to try it but I am having this issue:

It doesn't like this line of code: " Wire.begin(I2C_SDA,I2C_SCL); "

It highlights it when I try to upload it and gives me the following error info

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: candidate expects 0 arguments, 2 provided
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: candidate: void TwoWire::begin(uint8_t)
void begin(uint8_t);
^~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: candidate expects 1 argument, 2 provided
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:55:10: note: candidate: void TwoWire::begin(int)
void begin(int);
^~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:55:10: note: candidate expects 1 argument, 2 provided
exit status 1
no matching function for call to 'TwoWire::begin(const uint8_t&, const uint8_t&)'

@alanesq
Copy link
Owner

alanesq commented Mar 8, 2021

Hi,
I suspect the problem is that because on that board you have no choice on which pins to use it is complaining that you are trying to define them?

try: Wire.begin();

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