#!/usr/bin/python from khepctrl import * h = khep_open("/dev/rfcomm0", KHEP_B115200) #r = khep_cmd_read_speed(h) #print r.result #print r.data.motor.Get() #khep_cmd_set_led(h, LED_FRONTAL, LED_TOGGLE) r = khep_cmd_ambient_sensors(h) #khep_close(h)