Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions board_configs/busdisplay/i80/bpi-centi-s3/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/i80/t-display-s3/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
11 changes: 9 additions & 2 deletions board_configs/busdisplay/i80/t-hmi/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ def wlan():


def ble():
import bluetooth
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/i80/wt32sc01-plus/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/spi/m5stack-cores3/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/spi/t-display-s3-pro/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/spi/t-dongle-s3/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
11 changes: 9 additions & 2 deletions board_configs/busdisplay/spi/t-embed/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,13 @@ def wlan():


def ble():
import bluetooth
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/busdisplay/spi/t-qt-pro/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,16 @@ def wlan():


def ble():
import bluetooth
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bluetooth.BLE()
return bledev.mpble.get()


def usb_device():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/fbdisplay/esp32-s3-touch-lcd-7/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/fbdisplay/m5stack_tab5_ili9881c/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/fbdisplay/m5stack_tab5_st7123/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
13 changes: 10 additions & 3 deletions board_configs/fbdisplay/matrixportal_s3_64x64/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
12 changes: 10 additions & 2 deletions board_configs/fbdisplay/qualia_tl040hds20/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ def wlan():
return network.WLAN(network.STA_IF)

def ble():
import bluetooth
return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ def wlan():


def ble():
import bluetooth

return bluetooth.BLE()
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bledev.mpble.get()
11 changes: 9 additions & 2 deletions board_configs/fbdisplay/t-rgb_480/board_peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ def wlan():


def ble():
import bluetooth
# A bledev adapter (docs/ble.md §2). It also answers every bluetooth.BLE
# method, so code written for the raw radio keeps working. Without bledev
# (or aioble) installed, the raw radio, as before.
try:
import bledev.mpble
except ImportError:
import bluetooth

return bluetooth.BLE()
return bluetooth.BLE()
return bledev.mpble.get()
Loading
Loading