MartinNohr / MagicImageWand

Paints Images in the Air with LEDs
Apache License 2.0
20 stars 7 forks source link

A few errors.... #36

Closed krealab closed 2 years ago

krealab commented 3 years ago

Hi! I just ordered the TTGO board and downloaded the code. Followed the instructions in the wiki, but ending up with a few errors..... :

Arduino:1.8.13 (Mac OS X), Kort"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

In file included from sketch/MagicImageWand.h:52:0, from /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Desktop/MagicImageWand/MagicImageWand.ino:7: /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Documents/Arduino/libraries/FastLED/src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

pragma message "FastLED version 3.004.000"

                 ^

In file included from /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Documents/Arduino/libraries/FastLED/src/FastLED.h:65:0, from sketch/MagicImageWand.h:52, from /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Desktop/MagicImageWand/MagicImageWand.ino:7: /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Documents/Arduino/libraries/FastLED/src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"

                   ^

Traceback (most recent call last): File "esptool.py", line 57, in File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module File "serial/tools/list_ports.py", line 29, in File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module File "serial/tools/list_ports_posix.py", line 31, in File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module File "serial/tools/list_ports_osx.py", line 32, in ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found Failed to execute script esptool Mange bibliotek ble funnet for "FastLED.h" I bruk: /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Documents/Arduino/libraries/FastLED Ikke i bruk: /Users/kolbjorn/Dropbox/Min Mac (Kolbjørns MacBook Pro)/Documents/Arduino/libraries/FastLED-master Mange bibliotek ble funnet for "WiFi.h" I bruk: /Users/kolbjorn/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi Ikke i bruk: /Applications/Arduino.app/Contents/Java/libraries/WiFi exit status 255 /Applications/Arduino.app/Contents/Java/arduino-builder returnerte 255 Feil ved kompilering for kort ESP32 Dev Module.

dirkessl commented 3 years ago

Have you done all steps as in https://github.com/MartinNohr/MagicImageWand/wiki/9.-Compiling-from-source ?

krealab commented 3 years ago

Yes. I really dont know what the problem is. But i will try a different computer on windows. This i tried on a Mac. This error keeps popping up: enumeration value 'eIfEqual' not handled in switch [-Werror=switch]

Kolbjørn

MartinNohr commented 3 years ago

First, ignore the pragma messages, they do not indicate a problem. They are just information. I'm not sure what the Mac messages mean, but I can read the norwegian. It appears among other things that it is finding more than one version of the fastled.h library. Interesting. Are you using arduino IDE? Have you set the correct TTGO device? The 'eIfEqual' is defined as an enum in the .h file. I do not know why that would cause a compile error. It is a constant value used in a switch in the code, but other constants are also used in switch statements. I have a Mac here, but I have never used it to compile Arduino code.

krealab commented 3 years ago

I did the same process on a windows computer. It all works now. So now i need the hardware. Do you sell it or should i get it from Amazon? Kolbjørn

MartinNohr commented 3 years ago

Which hardware? There are lots of parts! The led strips are available from Amazon or banggood. I think I listed them in the docx file. You can build your own ttgo connections but it you like the PCB version, it is available from me. I have designed a new version of the 3D case, but I haven't uploaded it yet. The PCB has a socket for the TTGO chip and all the components including the rotary switch are soldered on. I can sell the PCB for $20 without the TTGO chip. You'll have to pay some shipping of course.

MartinNohr commented 3 years ago

Here are photos of the PCB. 20210224_094514 20210224_094531

MartinNohr commented 3 years ago

There is a newer design with some minor changes that you will be able to order directly from PCBWAY.com in China. It is about a month away from being finalized. I'll post the link when I have tested the prototypes.

ahennies-22 commented 3 years ago

Is there still a possibility to get an assembled board? If not, is there already news about the new board?

MartinNohr commented 3 years ago

Yes, I have 16 PCB's available. $35 + shipping. This includes a programmed TTGO. I just need an address and I can get the shipping cost. You will be able to get the board from PCBWAY.com without the TTGO. It will be available soon. I'll send the link when it is ready.

ahennies-22 commented 3 years ago

Is it possible to make the conversation via personal mail? I don't want to make my address public.

ahennies-22 commented 3 years ago

You can delete it

MartinNohr commented 3 years ago

Yes. I really dont know what the problem is. But i will try a different computer on windows. This i tried on a Mac. This error keeps popping up: enumeration value 'eIfEqual' not handled in switch [-Werror=switch]

Kolbjørn

I think I may have solved this compile problem in the latest version of the code. Some compilers issue a warning/error if all of the enums are not handled in a switch statement. This is perhaps a good idea since it will warn you about missing case statements. Please try compiling it on the system that gave the error and let me know. Thanks.

ahennies-22 commented 3 years ago

I am very sorry, but I still get this known error message. For more details I have put the output of the compilation into a file. I hope it helps. The compile process stops in line 334. Achim

Am Do., 29. Apr. 2021 um 16:28 Uhr schrieb MartinNohr < @.***>:

Yes. I really dont know what the problem is. But i will try a different computer on windows. This i tried on a Mac. This error keeps popping up: enumeration value 'eIfEqual' not handled in switch [-Werror=switch]

Kolbjørn

I think I may have solved this compile problem in the latest version of the code. Some compilers issue a warning/error if all of the enums are not handled in a switch statement. This is perhaps a good idea since it will warn you about missing case statements. Please try compiling it on the system that gave the error and let me know. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MartinNohr/MagicImageWand/issues/36#issuecomment-829285069, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVR5EN6EAZUTRG5KGQGGE3TLFUIPANCNFSM4X54KOTQ .

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

In file included from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/User_Setup_Select.h:133:0,

             from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/TFT_eSPI.h:39,

             from sketch\MagicImageWand.h:61,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/TFT_Drivers/ILI9341_Defines.h:4:0: warning: "TFT_HEIGHT" redefined

define TFT_HEIGHT 320

^

In file included from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/User_Setup_Select.h:22:0,

             from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/TFT_eSPI.h:39,

             from sketch\MagicImageWand.h:61,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/User_Setup.h:83:0: note: this is the location of the previous definition

define TFT_HEIGHT 240 // GC9A01 240 x 240

^

In file included from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/Processors/TFT_eSPI_ESP32.h:78:0,

             from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/TFT_eSPI.h:52,

             from sketch\MagicImageWand.h:61,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\FS\src/FS.h:30:0: warning: "FILE_READ" redefined

define FILE_READ "r"

^

In file included from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:797:0,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:28,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/sdfat.h:33,

             from sketch\MagicImageWand.h:34,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

c:\users\hennies\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:31:0: note: this is the location of the previous definition

define FILE_READ O_RDONLY

^

In file included from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/Processors/TFT_eSPI_ESP32.h:78:0,

             from C:\Users\hennies\Documents\Arduino\libraries\TFT_eSPI/TFT_eSPI.h:52,

             from sketch\MagicImageWand.h:61,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\FS\src/FS.h:31:0: warning: "FILE_WRITE" redefined

define FILE_WRITE "w"

^

In file included from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:797:0,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:28,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,

             from C:\Users\hennies\Documents\Arduino\libraries\SdFat\src/sdfat.h:33,

             from sketch\MagicImageWand.h:34,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

c:\users\hennies\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:35:0: note: this is the location of the previous definition

define FILE_WRITE (O_RDWR | O_CREAT | O_AT_END)

^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3006:11: warning: multi-character character constant [-Wmultichar]

a1[0] = '0x7e';

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3008:11: warning: multi-character character constant [-Wmultichar]

b1[0] = '0x7e';

       ^

In file included from sketch\MagicImageWand.h:58:0,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

pragma message "FastLED version 3.004.000"

                 ^

In file included from C:\Users\hennies\Documents\Arduino\libraries\FastLED\src/FastLED.h:65:0,

             from sketch\MagicImageWand.h:58,

             from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:

C:\Users\hennies\Documents\Arduino\libraries\FastLED\src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"

                   ^

In file included from D:\Pixelstick\MagicImageWand\MagicImageWand.ino:7:0:

sketch\MagicImageWand.h:583:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:583:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:594:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:594:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:594:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:594:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:611:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:611:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:618:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:618:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:628:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:628:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:637:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:637:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:645:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:645:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:692:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:700:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:700:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:719:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:749:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:765:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:765:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:765:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:765:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:800:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:800:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:800:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:800:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:809:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:809:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:825:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:846:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:846:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:873:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:873:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:873:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:873:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

};

^

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch\MagicImageWand.h:953:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'bool RunMenus(int)':

MagicImageWand:334:11: error: enumeration value 'eIfEqual' not handled in switch [-Werror=switch]

switch (MenuStack.top()->menu[ix].op) {

       ^

MagicImageWand:334:11: error: enumeration value 'eElse' not handled in switch [-Werror=switch]

MagicImageWand:334:11: error: enumeration value 'eEndif' not handled in switch [-Werror=switch]

MagicImageWand:334:11: error: enumeration value 'eTerminate' not handled in switch [-Werror=switch]

MagicImageWand:411:1: error: no return statement in function returning non-void [-Werror=return-type]

}

^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void ShowMenu(MenuItem*)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:421:6: warning: unused variable 'x' [-Wunused-variable]

int x = 0;

  ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:422:7: warning: unused variable 'line' [-Wunused-variable]

char line[100];

   ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void GetIntegerValue(MenuItem*)':

MagicImageWand:635:10: error: enumeration value 'BTN_NONE' not handled in switch [-Werror=switch]

switch (button) {

      ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void SetMenuColor(MenuItem*)':

MagicImageWand:869:29: error: operation on 'colorIndex' may be undefined [-Werror=sequence-point]

colorIndex = ++colorIndex;

                         ^

MagicImageWand:873:29: error: operation on 'colorIndex' may be undefined [-Werror=sequence-point]

colorIndex = --colorIndex;

                         ^

MagicImageWand:863:10: error: enumeration value 'BTN_NONE' not handled in switch [-Werror=switch]

switch (CRotaryDialButton::dequeue()) {

      ^

MagicImageWand:863:10: error: enumeration value 'BTN_CLICK' not handled in switch [-Werror=switch]

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'bool HandleMenus()':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:892:6: warning: unused variable 'lastMenuCount' [-Wunused-variable]

int lastMenuCount = MenuStack.top()->menucount;

  ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void BouncingColoredBalls(int, CRGB*)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1137:9: warning: unused variable 'startsec' [-Wunused-variable]

time_t startsec = time(NULL);

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1158:7: warning: unused variable 'percent' [-Wunused-variable]

long percent;

   ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void BarberPole()':

MagicImageWand:1215:1: error: label 'CRGB' defined but not used [-Werror=unused-label]

CRGB:CRGB red, white, blue;

^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void ShowRandomBars(bool)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1299:9: warning: unused variable 'start' [-Wunused-variable]

time_t start = time(NULL);

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1302:7: warning: unused variable 'line' [-Wunused-variable]

char line[40];

   ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void RunningDot()':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1358:8: warning: unused variable 'line' [-Wunused-variable]

char line[10];

    ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void DisplayLedLightBar()':

MagicImageWand:1569:21: error: operation on 'what' may be undefined [-Werror=sequence-point]

what = ++what % 6;

                 ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void TwinkleRandom(int, boolean)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1641:9: warning: unused variable 'start' [-Wunused-variable]

time_t start = time(NULL);

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void TestConfetti()':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:1727:9: warning: unused variable 'start' [-Wunused-variable]

time_t start = time(NULL);

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void ProcessFileOrTest()':

MagicImageWand:2142:19: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]

if (repeatDelay && (nRepeatsLeft > 1) || chainRepeatCount >= 1) {

               ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void ReadAndDisplayFile(bool)':

MagicImageWand:2293:48: error: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Werror=format=]

sprintf(num, "File Seconds: %d", secondsLeft);

                                            ^

MagicImageWand:2293:48: error: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Werror=format=]

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2306:7: warning: unused variable 'bufpos' [-Wunused-variable]

int bufpos = 0;

   ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2212:11: warning: unused variable 'bmpSize' [-Wunused-variable]

uint32_t bmpSize = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2213:11: warning: unused variable 'bmpReserved1' [-Wunused-variable]

uint16_t bmpReserved1 = readInt();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2214:11: warning: unused variable 'bmpReserved2' [-Wunused-variable]

uint16_t bmpReserved2 = readInt();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2225:11: warning: unused variable 'imgSize' [-Wunused-variable]

uint32_t imgSize = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2232:11: warning: unused variable 'imgXPelsPerMeter' [-Wunused-variable]

uint32_t imgXPelsPerMeter = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2233:11: warning: unused variable 'imgYPelsPerMeter' [-Wunused-variable]

uint32_t imgYPelsPerMeter = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2234:11: warning: unused variable 'imgClrUsed' [-Wunused-variable]

uint32_t imgClrUsed = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2235:11: warning: unused variable 'imgClrImportant' [-Wunused-variable]

uint32_t imgClrImportant = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void ShowBmp(MenuItem*)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2493:9: warning: unused variable 'bufpos' [-Wunused-variable]

 int bufpos = 0;

     ^

MagicImageWand:2527:10: error: enumeration value 'BTN_NONE' not handled in switch [-Werror=switch]

switch (ReadButton()) {

      ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2434:11: warning: unused variable 'bmpSize' [-Wunused-variable]

uint32_t bmpSize = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2435:11: warning: unused variable 'bmpReserved1' [-Wunused-variable]

uint16_t bmpReserved1 = readInt();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2436:11: warning: unused variable 'bmpReserved2' [-Wunused-variable]

uint16_t bmpReserved2 = readInt();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2447:11: warning: unused variable 'imgSize' [-Wunused-variable]

uint32_t imgSize = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2454:11: warning: unused variable 'imgXPelsPerMeter' [-Wunused-variable]

uint32_t imgXPelsPerMeter = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2455:11: warning: unused variable 'imgYPelsPerMeter' [-Wunused-variable]

uint32_t imgYPelsPerMeter = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2456:11: warning: unused variable 'imgClrUsed' [-Wunused-variable]

uint32_t imgClrUsed = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:2457:11: warning: unused variable 'imgClrImportant' [-Wunused-variable]

uint32_t imgClrImportant = readLong();

       ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'bool CompareNames(const String&, const String&)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3006:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]

a1[0] = '0x7e';

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3008:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]

b1[0] = '0x7e';

     ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'bool SaveSettings(bool, bool, bool, bool)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3193:12: warning: unused variable 'bytesread' [-Wunused-variable]

 size_t bytesread = EEPROM.readBytes(0, svalue, sizeof(signature));

        ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'uint16_t readInt()':

MagicImageWand:2631:44: error: 'retValue' is used uninitialized in this function [-Werror=uninitialized]

retValue += (uint16_t)((byte)incomingbyte);

                                        ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void SetPixel(int, CRGB, int, int)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3430:20: warning: 'ix2' may be used uninitialized in this function [-Wmaybe-uninitialized]

leds[ix2] = pixel;

                ^

D:\Pixelstick\MagicImageWand\MagicImageWand.ino: In function 'void MacroLoadRun(MenuItem*, bool)':

D:\Pixelstick\MagicImageWand\MagicImageWand.ino:3303:3: warning: 'oldShowBuiltins' may be used uninitialized in this function [-Wmaybe-uninitialized]

if (oldShowBuiltins != bShowBuiltInTests) {

^

cc1plus.exe: some warnings being treated as errors

Mehrere Bibliotheken wurden für "WiFi.h" gefunden

Benutzt: C:\Users\hennies\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

enumeration value 'eIfEqual' not handled in switch [-Werror=switch]

MartinNohr commented 3 years ago

I fixed the compile errors about the "eIfEqual" giving an error. It should also work correctly on the Mac version now.

ahennies-22 commented 3 years ago

I apologize for getting back to you so late. Unfortunately I was very busy and had no time to test the new version. Now I have tested it, but unfortunately the error still comes again. I will reinstall my computer (I wanted to do that anyway) and then test it again. But that will probably not happen until next week. I still think that it is not your code, but my computer. I have had this computer for a long time and I have installed and uninstalled many things. So, Windows doesn't like that very much. When I'm done, I'll get back to you.

Translated with www.DeepL.com/Translator (free version)

Am Mo., 10. Mai 2021 um 17:12 Uhr schrieb MartinNohr < @.***>:

I fixed the compile errors about the "eIfEqual" giving an error. It should also work correctly on the Mac version now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MartinNohr/MagicImageWand/issues/36#issuecomment-836820613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVR5ENAXDZZMP52WQFCLPTTM7ZVTANCNFSM4X54KOTQ .

ahennies-22 commented 3 years ago

Hi, I have now tested the code on a newly installed Windows 10 computer and it compiles without problems. Then I tried another test on a windows 10 laptop and it works fine too. I'm glad that it works now and I'll be sure to keep checking github to see how this really fantastic project develops. Thanks a lot for the great support. All the best

Am Mo., 17. Mai 2021 um 19:37 Uhr schrieb Achim Hennies < @.***>:

I apologize for getting back to you so late. Unfortunately I was very busy and had no time to test the new version. Now I have tested it, but unfortunately the error still comes again. I will reinstall my computer (I wanted to do that anyway) and then test it again. But that will probably not happen until next week. I still think that it is not your code, but my computer. I have had this computer for a long time and I have installed and uninstalled many things. So, Windows doesn't like that very much. When I'm done, I'll get back to you.

Translated with www.DeepL.com/Translator (free version)

Am Mo., 10. Mai 2021 um 17:12 Uhr schrieb MartinNohr < @.***>:

I fixed the compile errors about the "eIfEqual" giving an error. It should also work correctly on the Mac version now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MartinNohr/MagicImageWand/issues/36#issuecomment-836820613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVR5ENAXDZZMP52WQFCLPTTM7ZVTANCNFSM4X54KOTQ .

MartinNohr commented 3 years ago

I have a new design of the PCB that is much better. The signals are now stronger and reliable to the LED's so you can have longer lines without any problems. To anybody that has my original board I can ship you a new one for the cost of shipping. It is the same size.

MartinNohr commented 2 years ago

I fixed the original errors in the code, it was caused by the compiler being set to check that all enums were used in a switch. Some of them weren't in the switch, not a problem, but the compiler wasn't happy.