In SX Microcontrollers, SX/B Compiler and SX-Key Tool, TheBandit wrote: I've made something that's basically equivalent to the quadrature encoder input example in the SX/B help file (see attachment), except I'm using an optical encoder that needs 5volt power. Unfortunately I am new to microcontrollers and could use some help. What I would like to do is have a simple momentary pushbutton that I can use to turn on and off this device. I want to use little or no power when off because this will be running on battery power. From both a hardware and software standpoint, how can I have this thing kill power to the LED display and encoder when a pushbutton is pressed? I was thinking about using the SLEEP function somehow and using an output with a transister to power my components. Does anyone have any examples of how this would be done? Thank you for any help. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=276305 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)