Any way to code in Java for the Micro:Bit

I would like to make an OS for the Micro:Bit (I know it’s a hard project but idc), which is (for me) unpratical to do in Javascript and Python (and I also just love Java). Is there anyway to code in Java for the Micro:Bit? Or at least on a high level?

1 Like

Hi @Abelkrijgtalles , Welcome to the forum!

One of the best lists of Microbit resources is Awesome Microbit. It has a list of several programming languages and tools that support the micro:bit in some way: https://github.com/carlosperate/awesome-microbit#-programming . Unfortunately, it doesn’t list Java.

There aren’t many operating systems written in Java, but if you know Java it’s pretty easy to learn C or C++ , which are both supported on the micro:bit and commonly used in O.S. development. Many of the runtimes already in use are written in C/C++ and it’s possible to modify them to add features/etc. You may want to look into the Microbit page on the runtime, or even some of the repositories for the foundational libraries, like https://github.com/lancaster-university/codal-microbit-v2.

There are also several operating systems already that are worthy of study. See the RTOS (“Real-Time Operating Systems”) section at Awesome Microbit: https://github.com/carlosperate/awesome-microbit#️-rtos-with-microbit-profile .

Bill

1 Like