Skip to content

Commit 856e08b

Browse files
peterharperukdpgeorge
authored andcommitted
rp2/boards/PICO_W: Enable Bluetooth Low Energy support.
Signed-off-by: Damien George <damien@micropython.org>
1 parent ba83f6d commit 856e08b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

ports/rp2/boards/PICO_W/board.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"Breadboard friendly",
88
"Castellated Pads",
99
"Micro USB",
10-
"WiFi"
10+
"WiFi",
11+
"Bluetooth"
1112
],
1213
"id": "rp2-pico-w",
1314
"images": [
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
include("$(PORT_DIR)/boards/manifest.py")
22

33
require("bundle-networking")
4+
5+
# Bluetooth
6+
require("aioble")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# cmake file for Raspberry Pi Pico W
2+
3+
# The C malloc is needed by cyw43-driver Bluetooth
4+
set(MICROPY_C_HEAP_SIZE 4096)
5+
26
set(MICROPY_PY_LWIP ON)
37
set(MICROPY_PY_NETWORK_CYW43 ON)
48

9+
# Bluetooth
10+
set(MICROPY_PY_BLUETOOTH ON)
11+
set(MICROPY_BLUETOOTH_BTSTACK ON)
12+
set(MICROPY_PY_BLUETOOTH_CYW43 ON)
13+
514
# Board specific version of the frozen manifest
615
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

0 commit comments

Comments
 (0)