Hello all,
Thanks in advance for any help you can give. I have purchased all of the products for the https://learn.adafruit.com/stream-deck- ... dafruit-io project. The issue that I am having is in the compilation of the code to upload. I was able to compile and upload once. It had the wrong SSID and I changed it, but I cannot reupload it. It keeps failing to compile and I do not know why. I have deleted the messagepanel.ino and config.h and created new ones. I have updated the bootloader. I have checked that all libraries are updated, etc. Below are the errors on compile:
In file included from c:\Users\DiggerEOD\BANNED\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_WiFi.h:31,
from C:\Users\DiggerEOD\BANNED\Documents\Adafruit\Projects\MessagePanel\config.h:36,
from C:\Users\DiggerEOD\BANNED\Documents\Adafruit\Projects\MessagePanel\MessagePanel.ino:35:
c:\Users\DiggerEOD\BANNED\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_AIRLIFT.h: In member function 'void AdafruitIO_AIRLIFT::setLEDs(uint8_t, uint8_t, uint8_t)':
c:\Users\DiggerEOD\BANNED\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_AIRLIFT.h:110:56: error: 'class WiFiClass' has no member named 'setLEDs'
110 | void setLEDs(uint8_t r, uint8_t g, uint8_t b) { WiFi.setLEDs(r, g, b); }
| ^~~~~~~
c:\Users\DiggerEOD\BANNED\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_AIRLIFT.h: In member function 'virtual void AdafruitIO_AIRLIFT::_connect()':
c:\Users\DiggerEOD\BANNED\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_AIRLIFT.h:176:14: error: 'class WiFiClass' has no member named 'setPins'
176 | WiFi.setPins(_ssPin, _ackPin, _rstPin, _gpio0Pin, _wifi);
| ^~~~~~~
exit status 1
Compilation error: exit status 1
I'm brand new to this and am looking for some guidance.
N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- DiggerEOD
- Posts: 5
- Joined: Wed Nov 15, 2023 11:11 am
- dastels
- Posts: 14834
- Joined: Tue Oct 20, 2015 3:22 pm
Re: N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
It does look like a library mismatch issue. Do you have multiple copies of Adafruit_IO_Arduino on your system? If so it could be picking up an older one.
Dave
Dave
- DiggerEOD
- Posts: 5
- Joined: Wed Nov 15, 2023 11:11 am
Re: N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
@dastels - I searched in the Library Manager for "IO" and I have Adafruit BusIO (1.14.5) and Adafruit IO Arduino (4.2.9).
Here's a screenshot of all of libraries in the Arduino folder.
Here's a screenshot of all of libraries in the Arduino folder.
- dastels
- Posts: 14834
- Joined: Tue Oct 20, 2015 3:22 pm
Re: N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
If it's the case, then you'd have copies of the library in multiple places in your filesystem. The problem arises when there's a copy outside the library manager's scope that the build tools pickup on.
Dave
Dave
- DiggerEOD
- Posts: 5
- Joined: Wed Nov 15, 2023 11:11 am
Re: N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
@dastels - Thank you for your help on this. I was able to get the sketch to compile and upload to the Metro M4 Airlift after I uninstalled/deleted everything associated to this project.
On a seperate note that I hope you can assist with:
I have the 32x32 panel and the messages are not centered on the panel. Would you happen to know how to fix this?
Any thoughts?
On a seperate note that I hope you can assist with:
I have the 32x32 panel and the messages are not centered on the panel. Would you happen to know how to fix this?
Any thoughts?
- Attachments
-
- Screen Shot 2023-11-21 at 11.20.53 AM.png (59.05 KiB) Viewed 33 times
-
- Screen Shot 2023-11-21 at 11.14.54 AM.png (17.36 KiB) Viewed 33 times
Last edited by DiggerEOD on Tue Nov 21, 2023 12:41 pm, edited 1 time in total.
- dastels
- Posts: 14834
- Joined: Tue Oct 20, 2015 3:22 pm
Re: N00b: Metro M4 Airlift Lite and cannot compile Adafruit code
Glad it's working. Can you make a new thread for the new issue? It's better if a replacement is required, and it will get more/fresh eyes on it.
Dave
Dave
Please be positive and constructive with your questions and comments.