ort=27
RPIO.setup(enable_port,RPIO.OUT)
RPIO.gpio_function(enable_port)
RPIO.output(enable_port,RPIO.LOW)
#... = 27
RPIO.setup(enable_port, RPIO.OUT)
RPIO.gpio_function(enable_port)
RPIO.output(enable_port, RPIO.LOW)
... debug purpose on the same line if used in decode function
def printData():
global datagram
# print "\r da... True
call_time=time.time()
#define the interrupt function
def SetLed(gpio_id,val):
global blink_count
g
ut port to HIGH
#LED ON
RPIO.gpio_function(out_port)
RPIO.output(out_port,RPIO.HIGH)... RPIO.output(out_port,RPIO.LOW)
RPIO.gpio_function(out_port)
time.sleep(2)
# Clean up
RPIO... nt=0
push_state=0
run=True
#define the interrupt function
def SetLed(gpio_id,val):
global push_coun
fi;
fi
}
log_daemon_msg () {
# Dummy function to be replaced by LSB library.
echo $@
}
log_end_msg () {
# Dummy function to be replaced by LSB library.
if test "$1"