Closed ttlappalainen closed 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:
tycmd list -Ojson -v
to list devices in JSON formattycmd upload firmware.hex
(or firmware.elf directly), there are various options available to control which Teensy you want to program (--board option). Use tycmd upload --help
for more information.
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);