M5Stack-MegaChess - Any update?
-
Hi
Has anyone tried to compile in Arduino cc 1.8.xx the chess example?
I've just discovered it but it seems it doesn't compile with a list of errors ...Any suggestions?
-
Could you list the errors here, and then we will have a better idea of what the problem might be. I assume you already installed the esp32 board manager files, preferences.h is included with them
-
No prob at all.
I made sure the esp32 is installed and Arduino points to the right directory. After that this is the outcome:Arduino: 1.8.12 (Windows 10), Board: "M5Stack-Core-ESP32, QIO, 80MHz, Default, 921600, None"
C:\Users\planv\Documents\Arduino\arduinomegachess_for_m5stack\arduinomegachess_for_m5stack.ino: In function 'void show_cont(int, int)':
arduinomegachess_for_m5stack:764:61: error: invalid types 'const uint8_t [6][72] {aka const unsigned char [6][72]}[__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript
drawBitmap(ii*28+10, jj*28+3,&fig_cont[abs(pole[j][i])-1][0], 24, 24,color); ^C:\Users\planv\Documents\Arduino\arduinomegachess_for_m5stack\arduinomegachess_for_m5stack.ino: In function 'void show_fig(int, int)':
arduinomegachess_for_m5stack:855:56: error: invalid types 'const uint8_t [6][72] {aka const unsigned char [6][72]}[__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript
drawBitmap(ii*28+10, jj*28+3,&fig[abs(pole[j][i])-1][0], 24, 24,color); ^arduinomegachess_for_m5stack:856:61: error: invalid types 'const uint8_t [6][72] {aka const unsigned char [6][72]}[__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript
drawBitmap(ii*28+10, jj*28+3,&fig_cont[abs(pole[j][i])-1][0], 24, 24,color_cont); ^C:\Users\planv\Documents\Arduino\arduinomegachess_for_m5stack\arduinomegachess_for_m5stack.ino: In function 'String str_step(int)':
arduinomegachess_for_m5stack:930:60: error: invalid types 'const char [8][__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript
if (abs(steps[i].fig1)>1) s=fig_symb[abs(steps[i].fig1)]; ^arduinomegachess_for_m5stack:938:64: error: invalid types 'const char [8][__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscript
if (abs(steps[i].fig2)>1) s=s+fig_symb[abs(steps[i].fig2)]; ^Multiple libraries were found for "SD.h"
Used: C:\Users\planv\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "WiFiClient.h"
Used: C:\Users\planv\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
invalid types 'const uint8_t [6][72] {aka const unsigned char [6][72]}[__gnu_cxx::__enable_if<true, double>::__type {aka double}]' for array subscriptThis report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences. -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login