You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
704 B
16 lines
704 B
#ifndef ERROR_NO_H
|
|
#define ERROR_NO_H
|
|
|
|
/**
|
|
* Error codes using in the Micro:bit runtime.
|
|
*/
|
|
enum Error{
|
|
MICROBIT_INVALID_VALUE = -1, // currently only used in MicroBit.cpp rand function when the max is less or equal to 0.
|
|
MICROBIT_IO_OP_NA = -2, // used in MicroBitPin.cpp for when a pin cannot perform a transition. (microbit io operation not allowed)
|
|
MICROBIT_COMPASS_IS_CALIBRATING = -3, // used in MicroBitPin.cpp for when a pin cannot perform a transition. (microbit io operation not allowed)
|
|
MICROBIT_COMPASS_CALIBRATE_REQUIRED = -4,
|
|
MICROBIT_OOM = 20, // the MicroBit Out of memory error code...
|
|
MICROBIT_I2C_LOCKUP = 10 // the MicroBit I2C bus has locked up
|
|
};
|
|
#endif
|