diff --git a/firmwareapi/pycom/network/bluetooth/README.md b/firmwareapi/pycom/network/bluetooth/README.md index e1fd77b..7fe1da3 100644 --- a/firmwareapi/pycom/network/bluetooth/README.md +++ b/firmwareapi/pycom/network/bluetooth/README.md @@ -66,6 +66,14 @@ bluetooth = Bluetooth() Initialises and enables the Bluetooth radio in BLE mode. +{% hint style="info" %} +To use an external antenna, set `P12 as output pin.` + +```python +Pin('P12', mode=Pin.OUT)(True) +``` +{% endhint %} + ### bluetooth.deinit\(\) Disables the Bluetooth radio. diff --git a/firmwareapi/pycom/network/wlan.md b/firmwareapi/pycom/network/wlan.md index 0716805..daf04cd 100644 --- a/firmwareapi/pycom/network/wlan.md +++ b/firmwareapi/pycom/network/wlan.md @@ -76,6 +76,14 @@ or wlan.init(mode=WLAN.STA) ``` +{% hint style="info" %} +To use an external antenna, set `P12 as output pin.` + +```python +Pin('P12', mode=Pin.OUT)(True) +``` +{% endhint %} + #### wlan.deinit\(\) Disables the WiFi radio. @@ -144,6 +152,14 @@ Get or set the channel \(only applicable in AP mode\). Get or set the antenna type \(external or internal\). +{% hint style="info" %} +To use an external antenna, set `P12 as output pin.` + +```python +Pin('P12', mode=Pin.OUT)(True) +``` +{% endhint %} + #### wlan.mac\(\) Get a 6-byte long `bytes` object with the WiFI MAC address.