b6f1eebab3
The new sequence is as follows: * Solid blue during the boot/settings script. * Solid green during the main/code script. * After main while waiting to enter repl or reset: * Fading green once main is done successfully. * On error produce a series of flashes: * Long flash color of script. * Long flash color of error: * Green = IndentationError * Cyan = SyntaxError * White = NameError * Orange = OSError * Yellow = Other error * Line number of the exception by digit. Number of flashes represents value. * Thousands = White * Hundreds = Blue * Tens = Yellow * Ones = Cyan * Off for a period and then repeats. At any point a write to the flash storage will flicker red. Fixes #63
17 lines
443 B
C
17 lines
443 B
C
#define USB_REPL
|
|
|
|
#define MICROPY_HW_BOARD_NAME "Adafruit Gemma M0 (Experimental)"
|
|
#define MICROPY_HW_MCU_NAME "samd21e18"
|
|
|
|
#define MICROPY_HW_APA102_MOSI &pin_PA04
|
|
#define MICROPY_HW_APA102_SCK &pin_PA05
|
|
|
|
#define MICROPY_PORT_A (PORT_PA04 | PORT_PA05 | PORT_PA24 | PORT_PA25)
|
|
#define MICROPY_PORT_B (0)
|
|
|
|
#define AUTORESET_DELAY_MS 500
|
|
|
|
#include "internal_flash.h"
|
|
|
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
|