Koromix / tytools

Collection of tools to manage Teensy boards
https://koromix.dev/tytools
The Unlicense
214 stars 27 forks source link

Ty command API as TyCmd.dll #77

Closed ttlappalainen closed 2 years ago

ttlappalainen commented 3 years ago

Would it be possible/easy to create Ty API for at least:

Something like: using tProgressCallback=size_t ()(); bool GetBoardList(tFormat Format, char buffer, size_t bufferSize); bool UploadBoard(const char Tag, const char data, size_t dataLen, tProgressCallback Progress);

Koromix commented 3 years ago

There are two internal libraries used in this project and available in the src directory:

Unfortunately I don't have time to clean libty or document it, but the code is there. It works, it's just a bit overcomplicated. You can look at the code of tycmd to use it, for example:

Another option is to execute tycmd and parse the result: