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

Commit 8b8811e

Browse files
committed
use sdk function for initializeBLE
1 parent 63b6f72 commit 8b8811e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎libraries/ESPhost/src/EspChipManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ void CEspChipManager::initialize() {
3939

4040
void CEspChipManager::initializeBLE() {
4141
if (!isBLEInitialized) {
42-
pinMode(ESP_BLE_PIN_EN, OUTPUT);
43-
digitalWrite(ESP_BLE_PIN_EN, HIGH);
42+
R_IOPORT_PinCfg(NULL, digitalPinToBspPin(ESP_BLE_PIN_EN), IOPORT_CFG_PORT_DIRECTION_OUTPUT);
43+
R_IOPORT_PinWrite(NULL, digitalPinToBspPin(ESP_BLE_PIN_EN), BSP_IO_LEVEL_HIGH);
4444
isBLEInitialized = true;
4545
}
4646
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /