c4ev3 / ev3duder

The LEGO® EV3 Downloader/UploaDER.
http://c4ev3.github.io/ev3duder/doc/html/globals_func.html
GNU General Public License v3.0
34 stars 12 forks source link

UF2 manipulation #29

Closed JakubVanek closed 4 years ago

JakubVanek commented 4 years ago

This adds the UF2 manipulation code. Currently I only plan to implement the offline commands, as these cannot be emulated with other commands.

Fixes https://github.com/c4ev3/ev3duder/issues/15

JakubVanek commented 4 years ago

I have settled for the following interface:

ev3 uf2 pack <output uf2 file> <brick directory> <input files...>
ev3 uf2 unpack <input uf2 file> <output directory> [--with-paths]

No real directory mapping is done inside ev3duder to keep it generic. <brick directory> therefore has to be one of the directories supported by the uf2d daemon on the brick, i.e. Projects, SD Card, USB Stick, Temporary Logs or Permanent Logs.

JakubVanek commented 4 years ago

Thank you, I have completely missed that.. I have created https://github.com/c4ev3/ev3duder/pull/30 as a replacement.