Jump to content

Make the WPS LED Flash


Recommended Posts

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".

Link to comment
Share on other sites

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:


for i in {1..$1}
echo 0 > /sys/class/leds/alfa\:blue\:wps/brightness
sleep 1
echo 255 > /sys/class/leds/alfa\:blue\:wps/brightness
sleep 1

In no way elegant, but it should do the job to let you know when a script is starting or has ended.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...