pxt-calliope/docs/device/error-codes.md

24 lines
573 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# 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.
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
2016-08-18 16:23:26 +02:00
```sim
basic.showLeds(`
# . . . #
# # . # #
. . . . .
. # # # .
# . . . #
`)
```
2016-03-26 00:47:20 +01:00
### See also
2016-04-13 17:27:45 +02:00
[Run scripts on your micro:bit](/device/usb)
2016-03-26 00:47:20 +01:00