You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: