Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f53d27

Browse files
committed
Fix for bmi150 power line
This allows to set the 3v3 vddio/vdd pin for bmi150 in order to correctlypower the bmi avoiding voltage drop in the begin
1 parentff3334d commit3f53d27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎variants/ARDUINO_NANO33BLE/variant.cpp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,21 @@ void initVariant() {
153153
// FIXME: always enable I2C pullup and power @startup
154154
// Change for maximum powersave
155155
pinMode(PIN_ENABLE_SENSORS_3V3, OUTPUT);
156+
delay(10);
156157
pinMode(PIN_ENABLE_I2C_PULLUP, OUTPUT);
157158

158159
digitalWrite(PIN_ENABLE_SENSORS_3V3, HIGH);
159160
digitalWrite(PIN_ENABLE_I2C_PULLUP, HIGH);
160161

162+
// Set high drive pin to properly power the bmi150
163+
nrf_gpio_cfg(
164+
digitalPinToPinName(PIN_ENABLE_SENSORS_3V3),
165+
NRF_GPIO_PIN_DIR_OUTPUT,
166+
NRF_GPIO_PIN_INPUT_DISCONNECT,
167+
NRF_GPIO_PIN_NOPULL,
168+
NRF_GPIO_PIN_H0H1,
169+
NRF_GPIO_PIN_NOSENSE);
170+
161171
// Disable UARTE0 which is initially enabled by the bootloader
162172
nrf_uarte_task_trigger(NRF_UARTE0, NRF_UARTE_TASK_STOPRX);
163173
while (!nrf_uarte_event_check(NRF_UARTE0, NRF_UARTE_EVENT_RXTO)) ;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp