1

I would like to know if RPi booting is done without connecting to the monitor. So, I would like to use LED connected to the GPIO to know it. What code should I write?

1
  • Do you have your LED working with your GPIO already or do you need help with that also?
    – tlhIngan
    Dec 23 '16 at 1:59
1

cron is one way to do it, just set the "time" to @reboot.

Another way is with your startup system, which for Raspbian Wheezy is upstart. You can see this page on how to set it up. Basically, you need your LED to be activated by a bash script (this usually involves setting the appropriate GPIO pin high). Once you have that script, it's a simple matter of registering it with upstart using the update-rc.d command.

2
  • Thanks for you answer. I'm using Raspbian Wheezy. Could you give me more specific explanations?
    – S.W. Hong
    Dec 23 '16 at 1:47
  • @S.W.Hong Updated my answer to reflect Wheezy startup.
    – tlhIngan
    Dec 23 '16 at 1:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.