newbi3 Posted December 15, 2012 Share Posted December 15, 2012 I've been writing some scripts for the WPS button on the pineapple. Everything works great but I was wondering if there is anyway already built into the pineapple to make the WPS LED flash a certain amount of times for indication purposes. I've googled it but the results are all pretty much "how to flash the pineapple". Quote Link to comment Share on other sites More sharing options...
coolgeek Posted December 16, 2012 Share Posted December 16, 2012 Maybe the LED Control post will help you out. I don't think there is anything built in, but it shouldn't be too hard to throw together a script that let's you toggle it on and off as many times as you like. Something likes this comes to mind: #!/bin/bash for i in {1..$1} do echo 0 > /sys/class/leds/alfa\:blue\:wps/brightness sleep 1 echo 255 > /sys/class/leds/alfa\:blue\:wps/brightness sleep 1 done In no way elegant, but it should do the job to let you know when a script is starting or has ended. Quote Link to comment Share on other sites More sharing options...
newbi3 Posted December 16, 2012 Author Share Posted December 16, 2012 Yeah I figured this out a few minutes after I posted this. Thank you though! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.