'but it only compiles for the esp32 and not the esp32-s2'
It dawned on me that the request for esp32-S2 as it doesn't compile error free, might have been mis-understood. The Espruino Brand and concept are supported by the community to allow for on-going development. Sale of boards along with Patreon contributions.
While I do understand the desire to obtain a much lower cost alternative, that acquisition does come with some caveats, along with a big investment in time. That's the trade off.
The ESP32 is a popular choice but please understand that board falls into the 'Other' board category.
Please read over the eight bulleted list items for the originators position for this category:
http://www.espruino.com/Other+Boards
'Note: Third party boards are designed, sold and supported by companies who help to support Espruino's continued development.'
It may be that a few sympathetic readers will assist, but I do know from reading over the forums that the few that might quickly respond are busy resolving their own issues. Still, give it a shot, as now that I've gotten over the hump, I see possibilities that I hadn't imagined initially, and also if not for the learning experience.
You might consider this option to get some preferential support:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wed 2021.09.08
It dawned on me that the request for esp32-S2 as it doesn't compile error free, might have been mis-understood. The Espruino Brand and concept are supported by the community to allow for on-going development. Sale of boards along with Patreon contributions.
While I do understand the desire to obtain a much lower cost alternative, that acquisition does come with some caveats, along with a big investment in time. That's the trade off.
The ESP32 is a popular choice but please understand that board falls into the 'Other' board category.
Please read over the eight bulleted list items for the originators position for this category:
Read more from the originators official position:
It may be that a few sympathetic readers will assist, but I do know from reading over the forums that the few that might quickly respond are busy resolving their own issues. Still, give it a shot, as now that I've gotten over the hump, I see possibilities that I hadn't imagined initially, and also if not for the learning experience.
You might consider this option to get some preferential support: