Diode

14. dubna 2010
#!/usr/bin/env python #! coding:utf8 ''' Created on 11.3.2010 @author: Josef 'multi' Jebavý mail: josef dot jebavy at gmail.com web: http://multi.xeres.cz ''' import dbus def getDbusObject (bus, busname , objectpath , interface): dbusObject = bus.get_object(busname, objectpath) return dbus.Interface(dbusObject, dbus_interface=interface) led = getDbusObject (dbus.SystemBus(), "org.freesmartphone.odeviced", "/org/freesmartphone/Device/LED/gta02_aux_red", "org.freesmartphone.Device.LED") #led.SetBrightness(200) led.SetBlinking(200,400) # * SetBrightness # * SetBlinking # * BlinkSeconds # * SetNetworking

Články na podobné téma

Diode GUI
USB mode
Call status
Diode
Python Elementary