PyBytes + EXT_ANT
-
Good morning
I am currently trying to set the Wifi Antenna as external with the PyBytes config.
I added "wlan_antenna": 1 in the pybytes_config.json.
wlan.antenna() result is 1 but the Pin('P12') give Pin('P12', mode=Pin.IN, pull=None, alt=-1).
As the doc for ext_ant it should be Pin.OUT. Maybe I miss something in the config.Thank you
Br
-
-
@sylvainm OK. So P12 should be indeed the antenna switch pin. Can you test the voltage at the Pin?
I recall that there was a bug, causing P12 not set to output mode on init. So you can do that in your code. But that was fixed in Nov. last year:Author: iwahdan88 <islam@pycom.io> Date: Thu Nov 8 18:35:10 2018 +0100 esp32/util: fixed problem in antenna switch in newer esp32 chip models
-
-
@sylvainm Please tell us:
- which device are you using
- which firmware version