#!/usr/bin/python from khepctrl import * h = khep_open("/dev/rfcomm0", KHEP_B115200) khep_cmd_set_led(h, LED_FRONTAL, LED_TOGGLE) khep_close(h)