Skip to content

Commit d95a085

Browse files
authored
Merge pull request adafruit#7144 from CDarius/add_m5stack_core_safe_mode
Added safe mode button and fix coyright attribution
2 parents 4e20049 + b815a4c commit d95a085

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

locale/circuitpython.pot

Lines changed: 6 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,11 @@ msgstr ""
38443844
msgid "pressing both buttons at start up.\n"
38453845
msgstr ""
38463846

3847+
#: ports/espressif/boards/m5stack_core_basic/mpconfigboard.h
3848+
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
3849+
msgid "pressing button A at start up.\n"
3850+
msgstr ""
3851+
38473852
#: ports/nrf/boards/aramcon2_badge/mpconfigboard.h
38483853
msgid "pressing the left button at start up\n"
38493854
msgstr ""

ports/espressif/boards/m5stack_core_basic/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2020 Scott Shawcroft for Adafruit Industries
6+
* Copyright (c) 2022 CDarius
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal

ports/espressif/boards/m5stack_core_basic/mpconfigboard.h

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2022 Dan Halbert for Adafruit Industries
6+
* Copyright (c) 2022 CDarius
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal
@@ -38,6 +38,12 @@
3838
#define CIRCUITPY_BOARD_UART (1)
3939
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO17, .rx = &pin_GPIO16}}
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 button A 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)

ports/espressif/boards/m5stack_core_fire/board.c

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2020 Scott Shawcroft for Adafruit Industries
6+
* Copyright (c) 2022 CDarius
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal

ports/espressif/boards/m5stack_core_fire/mpconfigboard.h

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2022 Dan Halbert for Adafruit Industries
6+
* Copyright (c) 2022 CDarius
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal
@@ -39,6 +39,12 @@
3939
// #define CIRCUITPY_BOARD_UART (1)
4040
// #define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO17, .rx = &pin_GPIO16}}
4141

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

0 commit comments

Comments
 (0)