Skip to content

Commit b94447f

Browse files
committed
Added safe mode button
1 parent be07722 commit b94447f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

locale/circuitpython.pot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ msgstr ""
26422642
msgid "can't set 512 block size"
26432643
msgstr ""
26442644

2645-
#: py/objnamedtuple.c
2645+
#: py/objexcept.c py/objnamedtuple.c
26462646
msgid "can't set attribute"
26472647
msgstr ""
26482648

@@ -3844,6 +3844,10 @@ msgstr ""
38443844
msgid "pressing both buttons at start up.\n"
38453845
msgstr ""
38463846

3847+
#: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
3848+
msgid "pressing central button at start up.\n"
3849+
msgstr ""
3850+
38473851
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
38483852
msgid "pressing the left button at start up\n"
38493853
msgstr ""

ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
#define CIRCUITPY_BOARD_SPI (1)
3939
#define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO18, .mosi = &pin_GPIO23, .miso = &pin_GPIO19}}
4040

41+
// For entering safe mode
42+
#define CIRCUITPY_BOOT_BUTTON (&pin_GPIO39)
43+
44+
// Explanation of how a user got into safe mode
45+
#define BOARD_USER_SAFE_MODE_ACTION translate("pressing central button at start up.\n")
46+
4147
// UART pins attached to the USB-serial converter chip
4248
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO1)
4349
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO3)

0 commit comments

Comments
 (0)