|
2008-02-23
, 07:26
|
Posts: 86 |
Thanked: 362 times |
Joined on Dec 2007
@ Paris / France
|
#2
|
#! /usr/bin/python import time import dbus bus = dbus.SystemBus() obj = bus.get_object('com.nokia.mce','/com/nokia/mce/request') iface = dbus.Interface(obj,dbus_interface='com.nokia.mce.request') led_pattern = 'PatternCommonNotification' # led on iface.req_led_pattern_activate(led_pattern) # wait 10s time.sleep(10) # led off iface.req_led_pattern_deactivate(led_pattern)
Thanks!