create a systemd service that will launch a bash code that check the gpio . If the gpio is is at value 1, switch a led on to tell the user to remove his finger. After detecting the factory reset, do what you want in your system.....
Le mar. 28 mars 2017 à 21:29, Rao Gobburu <[email protected]> a écrit : > Hi folks > I hope that I am posting to the correct group.... apologies if this is the > wrong place. > We are creating a system based on the beagleboard black. We would like to > implement a "Factory Reset". i.e. if I hold down a switch for a long period > of time, say around 10 seconds, then we want to completely reset the > system. > Essentially the Reset pin is tied to one of the GPIO pins. So the GPIO > follows the Reset pin. > We would like to detect if the GPIO pin is still low about 10 seconds > after the Reset has been asserted. > The issue is that this is the time when the system is still booting up. I > am not sure how one could check on the status of the pin during the boot up. > Any ideas? > Thanks a lot > Rao > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/8dac92bb-1d9e-462b-8955-11bfc00f7706%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/8dac92bb-1d9e-462b-8955-11bfc00f7706%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRt%3D93mnAnSSebhAjJnO5kL8857%2BfHatqiweKGdUVvziZkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
