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
C:\Users\Dell\AppData\Local\Temp\.arduinoIDE-unsaved2023102-21732-1iynypm.fdd6h\pca9554\pca9554.ino: In function 'void loop()':
C:\Users\Dell\AppData\Local\Temp\.arduinoIDE-unsaved2023102-21732-1iynypm.fdd6h\pca9554\pca9554.ino:46:22: error: cannot bind non-const lvalue reference of type 'byte&' {aka 'unsigned char&'} to an rvalue of type 'byte' {aka 'unsigned char'}
if(io.digitalRead(7)) io.digitalWrite(1, LOW);
^
In file included from C:\Users\Dell\AppData\Local\Temp\.arduinoIDE-unsaved2023102-21732-1iynypm.fdd6h\pca9554\pca9554.ino:12:
c:\Users\Dell\Documents\Arduino\libraries\PCA9554\src/PCA9554.h:41:8: note: initializing argument 1 of 'bool PCA9554::digitalRead(byte&)'
bool digitalRead(byte &pinNumber);
^~~~~~~~~~~
Using library PCA9554 at version 0.0.1 in folder: C:\Users\Dell\Documents\Arduino\libraries\PCA9554
Using library Wire at version 2.0.0 in folder: C:\Users\Dell\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\Wire
exit status 1
Compilation error: cannot bind non-const lvalue reference of type 'byte&' {aka 'unsigned char&'} to an rvalue of type 'byte' {aka 'unsigned char'}
Thanks for your support.
The text was updated successfully, but these errors were encountered:
Platform: Arduino IDE + ESP32 C3
I'm trying to run your library, I don't have any issues with writing to a pin of PCA9554, but reading does not work:
I'm getting an error:
Thanks for your support.
The text was updated successfully, but these errors were encountered: