> ESP-IDF has a pretty big surface area, so it seems there’d need to be quite a 
> lot of API wrapping to make a full fledged Nim port. Besides IP sockets 
> there’s Bluetooth, flash I/O (SPI and internal), USB, GPIO, filesystems (for 
> SD cards), etc... But this is an exciting start.

Yah it has a surprisingly broad set of features. That said I think of 
Lwip/sockets as a core requirement to really use the ESP32 since they're on of 
the few that require changes in the Nim stdlib.

Luckily c2nim converts most of the rest pretty quickly. Sometimes you've got to 
tweak the C Headers a bit (looking at you inline struct initialization). I've 
already got a fair bit of uart, nvs flash, and the core FreeRTOS covered. Those 
only took a couple of hours each, or less. Nim libs provide the rest for json, 
http, etc. They're not very pretty Nim interfaces but useable!

That Wio Terminal looks like a great board. Arduino libraries are pretty easy 
to use with Nim + ARC/ORC, though the arduino-cli is the best. You can use the 
"esp32" freertos/lwip with it maybe: 
<https://wiki.seeedstudio.com/Software-FreeRTOS>/ (that'd let you do tasks too)

Reply via email to