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

RP2040 support #1

Open
Julius971 opened this issue Aug 14, 2024 · 0 comments
Open

RP2040 support #1

Julius971 opened this issue Aug 14, 2024 · 0 comments

Comments

@Julius971
Copy link

Using a rp2040 i stumbled across the following error:
\Arduino\libraries\LP50XX\src\I2C_coms.h:20:8: error: conflicting declaration of C function 'int8_t i2c_init()'
20 | int8_t i2c_init();
| ^~~~~~~~

Full error:
c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\I2C_coms.h:20:8: error: conflicting declaration of C function 'int8_t i2c_init()'
20 | int8_t i2c_init();
| ^~~~~~~~
In file included from C:\Users\Maetzig\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.5\libraries\Wire\src/Wire.h:28,
from c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\LP50XX.h:15,
from c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\LP50XX.cpp:11:
c:\users\maetzig\appdata\local\arduino15\packages\rp2040\hardware\rp2040\3.9.5\pico-sdk\src\rp2_common\hardware_i2c\include\hardware\i2c.h:98:6: note: previous declaration 'uint i2c_init(i2c_inst_t*, uint)'
98 | uint i2c_init(i2c_inst_t i2c, uint baudrate);
| ^~~~~~~~
c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\LP50XX.cpp: In member function 'void LP50XX::Begin(uint8_t)':
c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\LP50XX.cpp:67:13: error: too few arguments to function 'uint i2c_init(i2c_inst_t
, uint)'
67 | i2c_init();
| ~~~~~~~~^~
c:\users\maetzig\appdata\local\arduino15\packages\rp2040\hardware\rp2040\3.9.5\pico-sdk\src\rp2_common\hardware_i2c\include\hardware\i2c.h:98:6: note: declared here
98 | uint i2c_init(i2c_inst_t i2c, uint baudrate);
| ^~~~~~~~
In file included from c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\I2C_coms.cpp:1:
c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\I2C_coms.h:20:8: error: conflicting declaration of C function 'int8_t i2c_init()'
20 | int8_t i2c_init();
| ^~~~~~~~
In file included from C:\Users\Maetzig\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.5\libraries\Wire\src/Wire.h:28,
from c:\Users\Maetzig\Documents\Arduino\libraries\LP50XX\src\I2C_coms.h:10:
c:\users\maetzig\appdata\local\arduino15\packages\rp2040\hardware\rp2040\3.9.5\pico-sdk\src\rp2_common\hardware_i2c\include\hardware\i2c.h:98:6: note: previous declaration 'uint i2c_init(i2c_inst_t
, uint)'
98 | uint i2c_init(i2c_inst_t *i2c, uint baudrate);
| ^~~~~~~~

exit status 1

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

1 participant