Skip to content

Commit 9bfcba3

Browse files
authored
Merge branch 'adafruit:main' into fix-samd-pwm
2 parents 779e7d5 + 3645e81 commit 9bfcba3

File tree

16 files changed

+208
-32
lines changed

16 files changed

+208
-32
lines changed

locale/de_DE.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ msgstr ""
66
"Project-Id-Version: \n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
9-
"PO-Revision-Date: 2024-03-11 09:56+0000\n"
10-
"Last-Translator: Sokromatrix <kroschewski1971@gmail.com>\n"
9+
"PO-Revision-Date: 2024-06-18 19:09+0000\n"
10+
"Last-Translator: Xfox20 <[email protected].com>\n"
1111
"Language: de_DE\n"
1212
"MIME-Version: 1.0\n"
1313
"Content-Type: text/plain; charset=UTF-8\n"
1414
"Content-Transfer-Encoding: 8bit\n"
1515
"Plural-Forms: nplurals=2; plural=n != 1;\n"
16-
"X-Generator: Weblate 5.5-dev\n"
16+
"X-Generator: Weblate 5.6-dev\n"
1717

1818
#: main.c
1919
msgid ""
@@ -2365,7 +2365,7 @@ msgstr "Der BOOT-Knopf wurde beim Starten gedrückt"
23652365
#: ports/espressif/boards/adafruit_feather_esp32c6_4mbflash_nopsram/mpconfigboard.h
23662366
#: ports/espressif/boards/adafruit_itsybitsy_esp32/mpconfigboard.h
23672367
msgid "You pressed the BOOT button at start up."
2368-
msgstr ""
2368+
msgstr "Der BOOT-Knopf wurde beim Starten gedrückt."
23692369

23702370
#: ports/espressif/boards/adafruit_huzzah32_breakout/mpconfigboard.h
23712371
msgid "You pressed the GPIO0 button at start up."
@@ -4350,7 +4350,7 @@ msgstr ""
43504350

43514351
#: shared-bindings/bitmapfilter/__init__.c
43524352
msgid "weights must be an object of type %q, %q, %q, or %q, not %q "
4353-
msgstr ""
4353+
msgstr "Gewichte müssen ein Objekt des Typs %q, %q, %q, or %q, not %q sein "
43544354

43554355
#: shared-bindings/is31fl3741/FrameBuffer.c
43564356
msgid "width must be greater than zero"

locale/en_GB.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"PO-Revision-Date: 2024-04-18 21:03+0000\n"
11-
"Last-Translator: Andi Chandler <andi@gowling.com>\n"
10+
"PO-Revision-Date: 2024-06-18 19:09+0000\n"
11+
"Last-Translator: johnnohj <j.edward.fletcher@gmail.com>\n"
1212
"Language-Team: none\n"
1313
"Language: en_GB\n"
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
1717
"Plural-Forms: nplurals=2; plural=n != 1;\n"
18-
"X-Generator: Weblate 5.5-dev\n"
18+
"X-Generator: Weblate 5.6-dev\n"
1919

2020
#: main.c
2121
msgid ""
@@ -1309,7 +1309,7 @@ msgstr "MAC address was invalid"
13091309

13101310
#: ports/espressif/common-hal/_bleio/Characteristic.c
13111311
msgid "MITM security not supported"
1312-
msgstr ""
1312+
msgstr "MITM security is not supported"
13131313

13141314
#: shared-bindings/is31fl3741/IS31FL3741.c
13151315
msgid "Mapping must be a tuple"

locale/pt_BR.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
9-
"PO-Revision-Date: 2024-04-07 02:02+0000\n"
9+
"PO-Revision-Date: 2024-06-18 19:09+0000\n"
1010
"Last-Translator: Wellington Terumi Uemura <[email protected]>\n"
1111
"Language-Team: \n"
1212
"Language: pt_BR\n"
1313
"MIME-Version: 1.0\n"
1414
"Content-Type: text/plain; charset=UTF-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
1616
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17-
"X-Generator: Weblate 5.5-dev\n"
17+
"X-Generator: Weblate 5.6-dev\n"
1818

1919
#: main.c
2020
msgid ""
@@ -1325,7 +1325,7 @@ msgstr "O endereço MAC era inválido"
13251325

13261326
#: ports/espressif/common-hal/_bleio/Characteristic.c
13271327
msgid "MITM security not supported"
1328-
msgstr ""
1328+
msgstr "Não há suporte para segurança MITM"
13291329

13301330
#: shared-bindings/is31fl3741/IS31FL3741.c
13311331
msgid "Mapping must be a tuple"

ports/espressif/boards/adafruit_feather_esp32s2_reverse_tft/board.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ void board_init(void) {
101101

102102
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
103103
// Override the I2C/TFT power pin reset to prevent resetting the display.
104-
if (pin_number == 21) {
104+
if (pin_number == 7) {
105105
// Turn on TFT and I2C
106-
gpio_set_direction(21, GPIO_MODE_DEF_OUTPUT);
107-
gpio_set_level(21, true);
106+
gpio_set_direction(pin_number, GPIO_MODE_DEF_OUTPUT);
107+
gpio_set_level(pin_number, true);
108108
return true;
109109
}
110110
return false;

ports/espressif/boards/adafruit_feather_esp32s3_reverse_tft/board.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ void board_init(void) {
101101

102102
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
103103
// Override the I2C/TFT power pin reset to prevent resetting the display.
104-
if (pin_number == 21) {
104+
if (pin_number == 7) {
105105
// Turn on TFT and I2C
106-
gpio_set_direction(21, GPIO_MODE_DEF_OUTPUT);
107-
gpio_set_level(21, true);
106+
gpio_set_direction(pin_number, GPIO_MODE_DEF_OUTPUT);
107+
gpio_set_level(pin_number, true);
108108
return true;
109109
}
110110
return false;

ports/espressif/boards/adafruit_feather_esp32s3_tft/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
103103
// Override the I2C/TFT power pin reset to prevent resetting the display.
104104
if (pin_number == 21) {
105105
// Turn on TFT and I2C
106-
gpio_set_direction(21, GPIO_MODE_DEF_OUTPUT);
107-
gpio_set_level(21, true);
106+
gpio_set_direction(pin_number, GPIO_MODE_DEF_OUTPUT);
107+
gpio_set_level(pin_number, true);
108108
return true;
109109
}
110110
return false;

ports/nordic/boards/arduino_nano_33_ble/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Arduino Nano 33 BLE and Nano 33 BLE Sense
22

3-
The [Arduino Nano 33 BLE](https://store.arduino.cc/usa/nano-33-ble-with-headers) and
4-
[Arduino Nano 33 BLE Sense](https://store.arduino.cc/usa/nano-33-ble-sense) and
5-
are built around the NINA B306 module, based on Nordic nRF 52840 and containing
6-
a powerful Cortex M4F. Both include an onboard 9 axis Inertial Measurement Unit (IMU), the LSM9DS1.
7-
The Nano 33 BLE Sense adds an LPS22HB barometric pressure and temperature sensor,
8-
an ADPS-9960 digital proximity, ambient light, RGB, and gensture sensor,
3+
The [Arduino Nano 33 BLE](https://store.arduino.cc/usa/nano-33-ble) and
4+
[Arduino Nano 33 BLE Sense](https://store.arduino.cc/usa/nano-33-ble-sense)
5+
are built around the NINA-B306 module, based on the Nordic nRF52840 and containing
6+
a powerful Cortex-M4F. Both include an onboard 9-axis Inertial Measurement Unit (IMU), the LSM9DS1.
7+
The Nano 33 BLE Sense adds an LPS22HB barometric pressure and temperature sensor, an HTS221 humidity sensor,
8+
an APDS-9960 digital proximity, ambient light, RGB, and gesture sensor,
99
and an MP34DT05 digital microphone.
1010

1111
Note: the Arduino Nano 33 BLE and BLE Sense do not include a QSPI external
@@ -15,11 +15,11 @@ filesystem.
1515
I2C pins `board.SCL1` and `board.SDA1` are not exposed and are used for onboard peripherals.
1616
Pin `board.R_PULLUP` must be set to high to enable the `SCL1` and `SDA1` pullups for proper operation.
1717

18-
Pin `board.VDD_ENV` applies power to the LSM9DS1, and must be high for it to be operational.
18+
Pin `board.VDD_ENV` applies power to the LSM9DS1, the LPS22HB, and the HTS221, and must be high for them to be operational.
1919

2020
Pins `board.MIC_PWR`, `board.PDMDIN`, and `board.PDMCLK` are for the Nano 33 BLE Sense onboard microphone.
2121

22-
Pin `board.INT_ADPS` is the interrupt pin from the ADPS-9960.
22+
Pin `board.INT_APDS` is the interrupt pin from the APDS-9960.
2323

2424
Pins `board.RGB_LED_R`, `board.RGB_LED_G`, and `board.RGB_LED_B`
2525
are the red, green and blue LEDS in the onboard RGB LED.

ports/nordic/boards/arduino_nano_33_ble/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
4848
{ MP_ROM_QSTR(MP_QSTR_RGB_LED_G), MP_ROM_PTR(&pin_P0_16) },
4949
{ MP_ROM_QSTR(MP_QSTR_RGB_LED_B), MP_ROM_PTR(&pin_P0_06) },
5050

51-
// Power line to LSM9DS1.
51+
// Power line to LSM9DS1, LPS22 and HTS221.
5252
{ MP_ROM_QSTR(MP_QSTR_VDD_ENV), MP_ROM_PTR(&pin_P0_22) },
5353

5454
// Pullup voltage for SDA1 and SCL1
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Arduino Nano 33 BLE Rev2 and Nano 33 BLE Sense Rev2
2+
3+
The [Arduino Nano 33 BLE Rev2](https://store.arduino.cc/usa/nano-33-ble-rev2) and
4+
[Arduino Nano 33 BLE Sense Rev2](https://store.arduino.cc/usa/nano-33-ble-sense-rev2)
5+
are built around the NINA-B306 module, based on the Nordic nRF52840 and containing
6+
a powerful Cortex-M4F. Both include an onboard 9-axis Inertial Measurement Unit (IMU), made up of the BMI270 6-axis IMU and the BMM150 3-axis magnetometer.
7+
The Nano 33 BLE Sense Rev2 adds an LPS22HB barometric pressure and temperature sensor, an HS3003 humidity sensor,
8+
an APDS-9960 digital proximity, ambient light, RGB, and gesture sensor,
9+
and an MP34DT06JTR digital microphone.
10+
11+
Note: the Arduino Nano 33 BLE Rev2 and BLE Sense Rev2 do not include a QSPI external
12+
flash. Any Python code will need to be stored on the internal flash
13+
filesystem.
14+
15+
I2C pins `board.SCL1` and `board.SDA1` are not exposed and are used for onboard peripherals.
16+
Pin `board.R_PULLUP` must be set to high to enable the `SCL1` and `SDA1` pullups for proper operation.
17+
18+
Pin `board.VDD_ENV` applies power to the BMI270, the BMM150, the LPS22HB and the HS3003, and must be high for them to be operational.
19+
20+
Pins `board.MIC_PWR`, `board.PDMDIN`, and `board.PDMCLK` are for the Nano 33 BLE Sense onboard microphone.
21+
22+
Pin `board.INT_APDS` is the interrupt pin from the APDS-9960.
23+
24+
Pins `board.INT_BMI_1` and `board.INT_BMI_2` are the two interrupt pins from the BMI270.
25+
26+
Pin `board.INT_LPS` is the interrupt pin from the LPS22.
27+
28+
Pins `board.RGB_LED_R`, `board.RGB_LED_G`, and `board.RGB_LED_B`
29+
are the red, green and blue LEDS in the onboard RGB LED.
30+
31+
Pins `board.LED_G` and `board.LED_Y` are onboard green and red LEDs. `board.LED_Y` is also `board.SCK`.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// This file is part of the CircuitPython project: https://circuitpython.org
2+
//
3+
// SPDX-FileCopyrightText: Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
4+
//
5+
// SPDX-License-Identifier: MIT
6+
7+
#include "supervisor/board.h"
8+
#include "nrf.h"
9+
#include "nrf_rtc.h"
10+
11+
void board_init(void) {
12+
// Initializations below from Arduino variant.cpp.
13+
14+
// // turn power LED on
15+
// pinMode(LED_PWR, OUTPUT);
16+
// digitalWrite(LED_PWR, HIGH);
17+
18+
// Errata Nano33BLE - I2C pullup is on SWO line, need to disable TRACE
19+
// was being enabled by nrfx_clock_anomaly_132
20+
CoreDebug->DEMCR = 0;
21+
NRF_CLOCK->TRACECONFIG = 0;
22+
23+
// FIXME: bootloader enables interrupt on COMPARE[0], which we don't handle
24+
// Disable it here to avoid getting stuck when OVERFLOW irq is triggered
25+
nrf_rtc_event_disable(NRF_RTC1, NRF_RTC_INT_COMPARE0_MASK);
26+
nrf_rtc_int_disable(NRF_RTC1, NRF_RTC_INT_COMPARE0_MASK);
27+
28+
// // FIXME: always enable I2C pullup and power @startup
29+
// // Change for maximum powersave
30+
// pinMode(PIN_ENABLE_SENSORS_3V3, OUTPUT);
31+
// pinMode(PIN_ENABLE_I2C_PULLUP, OUTPUT);
32+
33+
// digitalWrite(PIN_ENABLE_SENSORS_3V3, HIGH);
34+
// digitalWrite(PIN_ENABLE_I2C_PULLUP, HIGH);
35+
}

0 commit comments

Comments
 (0)