PyBytes + EXT_ANT
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.
Thanks , I ll test asap, and add in my code P12 as Pin.OUT.
robert-hh last edited by robert-hh
@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 <email@example.com> Date: Thu Nov 8 18:35:10 2018 +0100 esp32/util: fixed problem in antenna switch in newer esp32 chip models
I am using Wipy 3.0 running FW 1.18.2.r6
Thanks for reply
robert-hh last edited by
@sylvainm Please tell us:
- which device are you using
- which firmware version