I’ve just started messing around with the BBC micro:bit and I understand that there are 3 programming languages that can be used: python, typescript and C++ (as well as Microsoft’s block thing). I’d prefer to use typescript and I was wondering if a simple build tool exists for building and deploying typescript to the micro:bit. I’m aware of using PXT as described here: https://makecode.com/cli. But PXT is really designed for hosting an online makecode instance and is way to heavy (~20k files, ~350MB) if you just want a simple command line build tool. Does a lighter weight tool exist or do I have to use python/C++ if I want to develop locally?
Thanks for your help.
It looks like there’s also some support for Rust, Ada, Forth, Pascal, … and many others.
Thanks for the link, I’ll take a look.
I’ve ended up using micropython for now but it would be great to try some of the other languages mentioned on an embedded system - rust in particular could be very cool.
There must be a way to extract just the compile/deploy tool chain from pxt and as it’s all open-source, could be a good little project for someone.
The issue I’m encountering is that I’m required to download 1000s of node modules each time I want to create a project. The uflash tool for micropython is much nicer, and I think the micro:bit could certainly benefit from something like that for typescript.
@jambolina we have a new, much, much faster CLI that doesn’t require downloading node_modules. Check it out here:
This looks like exactly the sort of thing I’m looking for.
I think rust could be pretty cool too…but I haven’t had the time to really dig into it. If you do, share your experience here!