-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Olimex ESP32-SBC-FabGL board #338
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wiiNunchuk files have nonstandard line endings for GitHub and have now a single line each with red ^M:s.
Is the SpaceInvaders game a copy of the game that already exists in FabGL? Would it not be better to modify that rather than adding a new file? There could perhaps be conditional compiling for your board.
@mobluse wiiNunchuk end-of-lines is now fixed. Thanks for noticing. |
I get an error trying to compile the SpaceInvaders.ino example in this pull request. I'm using Arduino 1.8.19 and the latest Espressif ESP32 support, v3.0.2, with FabGL 1.0.9, installed in the last couple of days. I took the SpaceInvaders.ino from this pull requeset, along with the contents of src/devdrivers, which I added to the project, plus one file which had to be copied from the main FabGL repo: https://github.com/fdivitto/FabGL/blob/master/src/devdrivers/MCP23S17.h I was previously trying to compile the SpaceInvaders provided with FabGL, and failing due to numerous errors which appear to relate to the change from v2.0.x to 3.0.x (see discussion #391). I've got a lot further using this pull request, but it's still not quite there. Here are just the error messages. I can add the full log if needed:
|
I've tried to get around that error by adding this to the top of CH32V003.cpp ;
Unfortunately, that just uncovers a lot more errors, which look similar to the ones I was getting with the main FabGL library version of SpaceInvaders. Perhaps these are also caused by the changes between ESP 2.0.x and 3.0.x board support.
|
It turns out the compilation problems were caused by using the current version of Espressif ESP32 boards support for Arduino (v3.0.2), which breaks compatibility with software written for v2.0.x. Both fdivitto/FabGL and Olimex's fork of FabGL apparently need v2.0.x, and Olimex were using v2.0.11. The board type (Tools->Board) should be set to: On my first successful attempt at getting the version in this pull request to compile, I used v2.0.11 and I still had to copy a couple of the include files into the project, taken from the pull request... I'm not sure if those are needed with 2.0.11 but I can check if anyone wants to know. Since Olimex now has their own fork, specifically for the ESP32_SBC_FabGL, it seems best to just use that: https://github.com/OLIMEX/FabGL There's also this other repo for other things relating to that board, which relies on their FabGL fork: |
CH32V003_Driver CH32V003.h and .c contains source of the driver needed to communicate with CH32V003 chip.
wiiNunchuk.h and .c contains source of device driver to use WiiNunchuk device with FabGL library. Example of its usage can be found in examples/Olimex_ESP32-SBC-FabGL_board folder (the Space Invaders game).