Error codes
Your micro:bit may encounter a situation that prevents it from running your code. When this happens, a frowny face will appear on your micro:bit screen (see picture) followed by an error number. These are called panic codes.
Below is a list of error numbers and what they mean:
- 10 (
MICROBIT_I2C_LOCKUP): the micro:bit’s I2C bus is not working - 20 (
MICROBIT_OOM): there is no free memory on the micro:bit - 30 (
MICORBIT_HEAP_ERROR): a problem in the heap space. - 40 (
MICROBIT_NULL_DEREFERENCE): there was a NULL dereference, the micro:bit tried to manage a invalid object pointer. - 42 (
MICROBIT_SYSTEM_ERROR): there’s an error condition in the micro:bit system software. - 43 (
MICROBIT_NO_RADIO): the micro:bit can’t enable the radio. - 98 (
MICROBIT_ASSERTION_FAILED): assertion failed, the condition in an assert was false.
basic.showLeds(`
# . . . #
# # . # #
. . . . .
. # # # .
# . . . #
`)