This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On-board LEDs
#1
Are there any on-board LEDs that I can manipulate?  I am trying the following code from Wiki page.  It talks about the following three LEDs

GPIO.ASUS
  • PWR_LED 3

  • ACT_LED 48

  • LED1_LED 49
But when I try these LEDs, nothing happens on the motherboard.  The output on the shell says wrong gpio for all 3 of these.

Code:
[color=#222222][font=sans-serif]wrong gpio
led on
led off
led on
[/font][/color]

Here is the code:

Code:
[/font][/color]
[color=#222222][font=sans-serif]import ASUS.GPIO as GPIO [/font][/color]
import time

GPIO.setwarnings(False)
GPIO.setmode(GPIO.ASUS)
LED = 49
GPIO.setup(LED,GPIO.OUT)
try:
   while True:
       print "led on"
       GPIO.output(LED,GPIO.HIGH)
       time.sleep(1)
       print "led off"
       GPIO.output(LED,GPIO.LOW)
       time.sleep(1)
except KeyboardInterrupt:
[color=#222222][font=sans-serif]   GPIO.cleanup()


[These font and color artifacts are added by this forum, please ignore]
Reply
#2
Hello,

I think we should not define color because they are led with a single color

Have you already tried ?

If so, look in the forum you will find maybe?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)