-
Notifications
You must be signed in to change notification settings - Fork 129
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
POWER_LED not blink #3
Comments
try this example in I remeber I has tested this code,it work |
Thank you very much for your answer. I tried orangepi_PC_gpio_pyH3\examples\blink_POWER_STATUS_PL10.py with my OrangePi-PC. standby_led is linked with PL10. $ sudo modprobe gpio_sunxi $ sudo sh -c "echo 1 > /sys/class/gpio_sw/normal_led/data" Thank you very much for your useful library. |
I knew the cause. Port L have a different address. Please see this page. http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=674&extra=page%3D3 Thank you. |
My code is below.
STATUS_LED flashes on and off.
but POWER_LED don't flashes on and off.
-- coding: utf-8 --
from pyA20.gpio import gpio
from pyA20.gpio import port
from pyA20.gpio import connector
import time
COUNT = 3
PIN1 = port.POWER_LED
PIN2 = port.STATUS_LED
PIN1 = connector.LEDp1 # This is the same as port.POWER_LED
PIN2 = connector.LEDp2 # This is the same as port.STATUS_LED
gpio.init()
gpio.setcfg(PIN1, gpio.OUTPUT)
gpio.setcfg(PIN2, gpio.OUTPUT)
for _ in xrange(COUNT):
gpio.output(PIN1,True)
gpio.output(PIN2,True)
time.sleep(1.0)
gpio.output(PIN1,False)
gpio.output(PIN2,False)
time.sleep(1.0)
Sorry my Poor English.
The text was updated successfully, but these errors were encountered: