Skip to content

Commit aa97ea2

Browse files
committed
Merge remote-tracking branch 'adafruit/main' into blm_badge
2 parents e5e132a + 9fc7118 commit aa97ea2

File tree

117 files changed

+760
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+760
-498
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
sudo apt-get install -y eatmydata
3939
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
40-
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort
40+
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black
4141
- name: Versions
4242
run: |
4343
gcc --version
@@ -195,6 +195,7 @@ jobs:
195195
- "hallowing_m0_express"
196196
- "hallowing_m4_express"
197197
- "hiibot_bluefi"
198+
- "ikigaisense_vita"
198199
- "imxrt1010_evk"
199200
- "imxrt1020_evk"
200201
- "imxrt1060_evk"
@@ -216,6 +217,7 @@ jobs:
216217
- "mini_sam_m4"
217218
- "monster_m4sk"
218219
- "ndgarage_ndbit6"
220+
- "ndgarage_ndbit6_v2"
219221
- "nfc_copy_cat"
220222
- "nice_nano"
221223
- "nucleo_f746zg"

locale/circuitpython.pot

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-07-21 18:43-0700\n"
11+
"POT-Creation-Date: 2020-07-24 19:58-0700\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -110,10 +110,6 @@ msgstr ""
110110
msgid "'%q' argument required"
111111
msgstr ""
112112

113-
#: py/objarray.c
114-
msgid "'%q' object is not bytes-like"
115-
msgstr ""
116-
117113
#: py/emitinlinethumb.c py/emitinlinextensa.c
118114
#, c-format
119115
msgid "'%s' expects a label"
@@ -219,11 +215,11 @@ msgid "'align' requires 1 argument"
219215
msgstr ""
220216

221217
#: py/compile.c
222-
msgid "'async for' or 'async with' outside async function"
218+
msgid "'await' outside function"
223219
msgstr ""
224220

225221
#: py/compile.c
226-
msgid "'await' outside function"
222+
msgid "'await', 'async for' or 'async with' outside async function"
227223
msgstr ""
228224

229225
#: py/compile.c
@@ -1336,10 +1332,6 @@ msgstr ""
13361332
msgid "Pull not used when direction is output."
13371333
msgstr ""
13381334

1339-
#: ports/stm/ref/pulseout-pre-timeralloc.c
1340-
msgid "PulseOut not supported on this chip"
1341-
msgstr ""
1342-
13431335
#: ports/stm/common-hal/os/__init__.c
13441336
msgid "RNG DeInit Error"
13451337
msgstr ""
@@ -1773,7 +1765,7 @@ msgstr ""
17731765
msgid "__new__ arg must be a user-type"
17741766
msgstr ""
17751767

1776-
#: extmod/modubinascii.c extmod/moduhashlib.c
1768+
#: extmod/modubinascii.c extmod/moduhashlib.c py/objarray.c
17771769
msgid "a bytes-like object is required"
17781770
msgstr ""
17791771

ports/atmel-samd/bindings/samd/Clock.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "py/objproperty.h"
3131
#include "py/runtime.h"
3232

33-
//| import typing
3433
//| class Clock:
3534
//| """Identifies a clock on the microcontroller.
3635
//|
@@ -44,7 +43,7 @@ STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print
4443
mp_printf(print, "%q.%q.%q", MP_QSTR_samd, MP_QSTR_clock, self->name);
4544
}
4645

47-
//| enabled: bool = ...
46+
//| enabled: bool
4847
//| """Is the clock enabled? (read-only)"""
4948
//|
5049
STATIC mp_obj_t samd_clock_get_enabled(mp_obj_t self_in) {
@@ -62,7 +61,7 @@ const mp_obj_property_t samd_clock_enabled_obj = {
6261
},
6362
};
6463

65-
//| parent: typing.Union(Clock | None) = ...
64+
//| parent: Union[Clock, None]
6665
//| """Clock parent. (read-only)"""
6766
//|
6867
STATIC mp_obj_t samd_clock_get_parent(mp_obj_t self_in) {
@@ -90,7 +89,7 @@ const mp_obj_property_t samd_clock_parent_obj = {
9089
},
9190
};
9291

93-
//| frequency: int = ...
92+
//| frequency: int
9493
//| """Clock frequency in Herz. (read-only)"""
9594
//|
9695
STATIC mp_obj_t samd_clock_get_frequency(mp_obj_t self_in) {
@@ -108,7 +107,7 @@ const mp_obj_property_t samd_clock_frequency_obj = {
108107
},
109108
};
110109

111-
//| calibration: int = ...
110+
//| calibration: int
112111
//| """Clock calibration. Not all clocks can be calibrated."""
113112
//|
114113
STATIC mp_obj_t samd_clock_get_calibration(mp_obj_t self_in) {

ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
2929

3030
// Increase stack size slightly due to CPX library import nesting
31-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) //divisible by 8
31+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) //divisible by 8
3232

3333
#define USER_NEOPIXELS_PIN (&pin_PB23)
3434

ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
3131

3232
// Increase stack size slightly due to CPX library import nesting
33-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) // divisible by 8
33+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) // divisible by 8
3434

3535
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
3636
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)

ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
2929

3030
// Increase stack size slightly due to CPX library import nesting.
31-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) // divisible by 8
31+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) // divisible by 8
3232

3333
#define USER_NEOPIXELS_PIN (&pin_PB23)
3434

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This file is part of the MicroPython project, http://micropython.org/
3+
*
4+
* The MIT License (MIT)
5+
*
6+
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
* THE SOFTWARE.
25+
*/
26+
27+
#include "boards/board.h"
28+
#include "mpconfigboard.h"
29+
#include "hal/include/hal_gpio.h"
30+
31+
void board_init(void) {
32+
}
33+
34+
bool board_requests_safe_mode(void) {
35+
return false;
36+
}
37+
38+
void reset_board(void) {
39+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#define MICROPY_HW_BOARD_NAME "ndGarage[n°] Bit6: FeatherSnow-v2"
2+
#define MICROPY_HW_MCU_NAME "samd21e18"
3+
4+
#define MICROPY_HW_LED_STATUS (&pin_PA23)
5+
6+
#define MICROPY_PORT_A (PORT_PA24 | PORT_PA25)
7+
#define MICROPY_PORT_B (0)
8+
#define MICROPY_PORT_C (0)
9+
10+
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
11+
12+
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000 CIRCUITPY_INTERNAL_NVM_SIZE)
13+
14+
#define DEFAULT_I2C_BUS_SCL (&pin_PA17)
15+
#define DEFAULT_I2C_BUS_SDA (&pin_PA16)
16+
17+
#define DEFAULT_UART_BUS_RX (&pin_PA17)
18+
#define DEFAULT_UART_BUS_TX (&pin_PA16)
19+
20+
// USB is always used.
21+
#define IGNORE_PIN_PA24 1
22+
#define IGNORE_PIN_PA25 1
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
LD_FILE = boards/samd21x18-bootloader.ld
2+
USB_VID = 0x239A
3+
USB_PID = 0x80B9
4+
USB_PRODUCT = "Bit6"
5+
USB_MANUFACTURER = "ndGarage"
6+
7+
CHIP_VARIANT = SAMD21E18A
8+
CHIP_FAMILY = samd21
9+
10+
INTERNAL_FLASH_FILESYSTEM = 1
11+
LONGINT_IMPL = NONE
12+
CIRCUITPY_FULL_BUILD = 0
13+
14+
SUPEROPT_GC = 0

0 commit comments

Comments
 (0)