adafruit / Adafruit_Wippersnapper_Arduino

WipperSnapper is a firmware for creating no-code IoT electronics projects.
https://io.adafruit.com/welcome
MIT License
27 stars 40 forks source link

Unable to compile Wippersnapper_NoFS.ino #556

Closed catherinedodge closed 3 months ago

catherinedodge commented 3 months ago

Describe the bug I am not able to get the example code at https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/blob/main/examples/Wippersnapper_NoFS/Wippersnapper_NoFS.ino to compile. Initially I received errors about missing header files, but after installing additional libraries I was able to resolve those.

My current error is below:


In file included from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/display/ws_display_driver.h:20, from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Wippersnapper.h:74, from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/network_interfaces/Wippersnapper_ESP32.h:21, from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Wippersnapper_Networking.h:30, from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/examples/Wippersnapper_NoFS/Wippersnapper_NoFS.ino:19: /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Adafruit_LvGL_Glue.h:52:10: error: 'lv_disp_drv_t' does not name a type; did you mean 'lv_fs_drv_t'? static lv_disp_drv_t lv_disp_drv; ^~~~~ lv_fs_drv_t /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Adafruit_LvGL_Glue.h:53:10: error: 'lv_disp_draw_buf_t' does not name a type; did you mean 'lv_draw_buf_t'? static lv_disp_draw_buf_t lv_disp_draw_buf; ^~~~~~ lv_draw_buf_t /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Adafruit_LvGL_Glue.h:55:10: error: 'lv_indev_drv_t' does not name a type; did you mean 'lv_indev_data_t'? static lv_indev_drv_t lv_indev_drv; ^~~~~~ lv_indev_data_t /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/examples/Wippersnapper_NoFS/Wippersnapper_NoFS.ino:33:68: error: no matching function for call to 'Wippersnapper_ESP32::Wippersnapper_ESP32(const char [11], const char [33], const char [8], const char [13])' Wippersnapper_WiFi wipper(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS); ^ In file included from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/Wippersnapper_Networking.h:30, from /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/examples/Wippersnapper_NoFS/Wippersnapper_NoFS.ino:19: /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/network_interfaces/Wippersnapper_ESP32.h:42:3: note: candidate: 'Wippersnapper_ESP32::Wippersnapper_ESP32()' Wippersnapper_ESP32() : Wippersnapper() { ^~~~~~~ /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/network_interfaces/Wippersnapper_ESP32.h:42:3: note: candidate expects 0 arguments, 4 provided /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/network_interfaces/Wippersnapper_ESP32.h:34:7: note: candidate: 'Wippersnapper_ESP32::Wippersnapper_ESP32(const Wippersnapper_ESP32&)' class Wippersnapper_ESP32 : public Wippersnapper { ^~~~~~~ /Users/fembotspice/Documents/Arduino/libraries/Adafruit_WipperSnapper/src/network_interfaces/Wippersnapper_ESP32.h:34:7: note: candidate expects 1 argument, 4 provided

exit status 1

Compilation error: no matching function for call to 'Wippersnapper_ESP32::Wippersnapper_ESP32(const char [11], const char [33], const char [8], const char [13])'


Arduino board Adafruit FunHouse

To Reproduce Steps to reproduce the behavior:

  1. Open up the Arduino IDE v2.3.2
  2. Click on 'Tools' -> Manage LIbraries
  3. Search for 'Wipper' and find the 'Adafruit WipperSnapper' library. Install version 1.0.0-beta.77
  4. Navigate to the folder /Users//Documents/Arduino/libraries/Adafruit_WipperSnapper/examples/Wippersnapper_NoFS and open the file Wippersnapper_NoFS.ino in the Arduino IDE.
  5. Click on 'Sketch' -> 'Verify/Compile' and you will get an error message

Expected behavior A clear and concise description of what you expected to happen. I expected to be able to click on 'Sketch' -> 'Verify/Compile' and have the code compile correctly, but it did not.

Which components are connected to your device Which components are set up on the WipperSnapper device page?

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information): N/A

Additional context Add any other context about the problem here.

catherinedodge commented 3 months ago

Realized I skipped the easy way to get connected to AdaFruit IO. Copying downloaded .uf2 image file worked. Closing.