Hi,
I am trying to use rWire to write an I2C program to read some data with an esp8266 D1 Mini Pro from WII Nunchuck I am getting this error when I compile it. I did update the rWire for the esp32 board. A while back. Any thoughts on what I am doing wrong ?
C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\rWire.cpp: In member function 'void B4R::WireSlave::Initialize(Byte, B4R::SubVoidArray)':
rWire.cpp:35:30: error: invalid conversion from 'void (*)()' to 'void (*)(size_t) {aka void (*)(unsigned int)}' [-fpermissive]
Wire.onRequest(requestEvent);
^
In file included from C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\B4RDefines.h:22:0,
from C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\rWire.cpp:1:
C:\Users\Owner\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Wire/Wire.h:80:10: error: initializing argument 1 of 'void TwoWire:nRequest(void (*)(size_t))' [-fpermissive]
void onRequest( void (*)(size_t) );
I am trying to use rWire to write an I2C program to read some data with an esp8266 D1 Mini Pro from WII Nunchuck I am getting this error when I compile it. I did update the rWire for the esp32 board. A while back. Any thoughts on what I am doing wrong ?
C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\rWire.cpp: In member function 'void B4R::WireSlave::Initialize(Byte, B4R::SubVoidArray)':
rWire.cpp:35:30: error: invalid conversion from 'void (*)()' to 'void (*)(size_t) {aka void (*)(unsigned int)}' [-fpermissive]
Wire.onRequest(requestEvent);
^
In file included from C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\B4RDefines.h:22:0,
from C:\0B4X_D~1\B4R_PR~1\NunChuck\Objects\bin\sketch\rWire.cpp:1:
C:\Users\Owner\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Wire/Wire.h:80:10: error: initializing argument 1 of 'void TwoWire:nRequest(void (*)(size_t))' [-fpermissive]
void onRequest( void (*)(size_t) );