Raspberry PI Zero W Question

Raspberry Pi hardware discussion (including peripherals)
Post Reply
User avatar
drafterITA
Posts: 120
Joined: Fri Feb 24, 2017 8:15 am
Location: Italy
Has thanked: 66 times
Been thanked: 19 times
Contact:

Raspberry PI Zero W Question

Post by drafterITA » Sat Mar 04, 2017 8:15 am

Hello Community :)
I'm a total newbie and so forgive me for asking something that maybe is clearly impossible or super trivial..
with the new model of the Raspberry PI Zero, the W model, with built-in Wi-Fi and Bluetooth, would it be possible to "easily" add a tactile button on the side of the case to turn on/off this connectivity? And hook it on some of the GPIO pins of the RP.. or something like that :)
Because that would be neat.. since I ordered it for my GBZ build

Thank you! :)
Cheers! :D
drafterITA

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: Raspberry PI Zero W Question

Post by HoolyHoo » Sat Mar 04, 2017 8:37 am

Should be doable by reading GPIO state and short script using "sudo ifconfig wlan0 down". Might need to reboot to bring wifi back up though. I'm sure a better command might be found without the reboot but that would be the gist of it.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest