Active Topics

 


Reply
Thread Tools
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#1
Is there an api to control the led in the n810 with python?
 
Posts: 662 | Thanked: 238 times | Joined on Jul 2007
#2
Sorry, don't know anyone attempting to do this on an IT, but this is the closest thing I could find .

Hope it helps!
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#3
that looks like its for a symbian device
 

The Following User Says Thank You to jgallen23 For This Useful Post:
Moonshine's Avatar
Posts: 469 | Thanked: 88 times | Joined on Sep 2007 @ Montana
#4
I could be totally lost here, but shouldn't there be some dbus signals to control the leds that you could send via python?
 
Posts: 662 | Thanked: 238 times | Joined on Jul 2007
#5
Hm, from the PyMaemo site, you should be able to learn from it and change around to what you need, I hope :
#!/usr/bin/python2.5

import osso
import gobject

# Example of using osso.DeviceState.display_state_on
# You need to set the display brightness period to 10 seconds.
# This example will bright the display after each 11 seconds.

count = 0

def blink_cb(device, loop):

global count

device.display_state_on()

count += 1
if count == 5:
loop.quit()
return False

return True

def main():
global count
loop = gobject.MainLoop()
osso_c = osso.Context("osso_test_device_on", "0.0.1", False)
device = osso.DeviceState(osso_c)

gobject.timeout_add(11000, blink_cb, device, loop)

loop.run()

if __name__ == "__main__":
main()
 
Posts: 1 | Thanked: 3 times | Joined on Nov 2009
#6
I know that this thread is so old, but maybe someone will need this.
I wrote (and explained a bit) how you can manage LED with Python on N810 (i think that it also should work on N800)
Enjoy: http://blog.tastycode.pl/2009/11/21/...ets-in-python/

Informatic - Happy N810 user/developer
 

The Following 3 Users Say Thank You to Informatic For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 160 | Thanked: 85 times | Joined on Jan 2009 @ Greece-Athens
#8
Originally Posted by qwerty12 View Post
/me swears by http://sse2.net/ledcolor.py
That īs a very usefull app! I was looking for something like this a long time. Can you improve it so that led doesnīt switch off after some seconds (if that 's possible), add more feutures like blinking, better ui and upload it to the repo?

Last edited by gerstavros; 2009-11-29 at 17:32.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:42.