Added safe mode button

This commit is contained in:
CDario 2022-10-28 05:00:54 +00:00
parent be07722bbc
commit b94447fde5
2 changed files with 11 additions and 1 deletions

View File

@ -2642,7 +2642,7 @@ msgstr ""
msgid "can't set 512 block size" msgid "can't set 512 block size"
msgstr "" msgstr ""
#: py/objnamedtuple.c #: py/objexcept.c py/objnamedtuple.c
msgid "can't set attribute" msgid "can't set attribute"
msgstr "" msgstr ""
@ -3844,6 +3844,10 @@ msgstr ""
msgid "pressing both buttons at start up.\n" msgid "pressing both buttons at start up.\n"
msgstr "" msgstr ""
#: ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h
msgid "pressing central button at start up.\n"
msgstr ""
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h #: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
msgid "pressing the left button at start up\n" msgid "pressing the left button at start up\n"
msgstr "" msgstr ""

View File

@ -38,6 +38,12 @@
#define CIRCUITPY_BOARD_SPI (1) #define CIRCUITPY_BOARD_SPI (1)
#define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO18, .mosi = &pin_GPIO23, .miso = &pin_GPIO19}} #define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO18, .mosi = &pin_GPIO23, .miso = &pin_GPIO19}}
// For entering safe mode
#define CIRCUITPY_BOOT_BUTTON (&pin_GPIO39)
// Explanation of how a user got into safe mode
#define BOARD_USER_SAFE_MODE_ACTION translate("pressing central button at start up.\n")
// UART pins attached to the USB-serial converter chip // UART pins attached to the USB-serial converter chip
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO1) #define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO1)
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO3) #define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO3)