Example Code for micro:bit-Read Battery Level
Last revision 2026/01/04
The article offers example code for reading battery levels on micro:bit using MakeCode and Mind+, including library links and program screenshots for easy implementation.
Software Preparation
-
MakeCode User Library Link: click here
-
Mind+ Upload Mode User Library Link: click here
-
Mind+ Python Mode User Library Link: click here
Sample Code
| MakeCode Program Screenshot Program Link:click here |
Mind+ Program Screenshot |
![]() |
![]() |
Result

Was this article helpful?


