Antenna configuration

This pull request adds antenna configuration functionality and a small fix to the button sensor.