-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code related to two colors LED and power button. #1
Comments
Hi @net4u - For power on, the momentary switch just needs to connect pin 3 of the PI to ground momentarily. The red and green LEDs are connected to GPIO pins (with resistors) as outputs. In the power on sequence, the red LED is tuned off and the green is turned on. During shutdown, the opposite occurs. Let me know if you need more details! |
Hi. I will try tomorrow and then come with feedback. I have to search for an extra LED in my "archived electronics boxes". Thnx a lot. |
Beyond "import RPI.GPIO" I also need to import the other libraries? |
Beyond import RPI.GPIO I need also to import the other libraries? |
You only need the other libraries if you are doing more than setting the values for the GPIO pins. In other words, if you're just turning on and off the LEDs, that should be the only library you'll need. If you do require another library, an error message should alert you as to which one is missing. |
Hello! Can I ask you to help me extract from your source code, only what is strictly related to the power button and the two LEDs (red and green).
The text was updated successfully, but these errors were encountered: