PCA9557 not compiling on Arduino 2.3.1
Tutorial Lesson 2 and any .ino which includes PCA9557.h does not compile in Arduino 2.3.1.
I have copied PCA9557.h into the tutorial directory.
Several error messages primarily:
error: reference to 'PCA9557' is ambiguous
error: 'Out' was not declared in this scope
32 | Out.reset();
Any guidance appreciated
Comments
Hello @underscore_This ,
Please check the README document to determine the version of the board: https://github.com/Elecrow-RD/CrowPanel-ESP32-Display-Course-File/blob/main/CrowPanel_ESP32_Tutorial/Code/README.md
If it is a version below 3.0, please use the V2.0 code
If it is confirmed to be version 3.0, please do not put the PCA9557 code in the course document directory or project directory, but put it in the library directory:
Hello.
Which/where is the PCA9557 library?
I tried with library PCA9557-arduino@1.0.0 and does not compile in Arduino 2.3.2 (CrowPanel 7" v.3.0)
Thanks for your time.
Hello @hamon ,
Please check the attachment below
Many thanks, I had mistakenly used the V3.0 files. Using V2.0 files, which do not include PCA9557.h, the 'draw' sketch does compile, uploads to the screen and displays correctly. One also has to remember to set the IDE Tools/PSRAM to OPI PSRAM, otherwise the screen will remain blank.