def main(): moveServo.init_candy() moveServo.move_servo_ext(0, 180, 25) print "sleep 5" # time.sleep(1) moveServo.move_servo_ext(180, 90, 25) print "sleep 5" # time.sleep(1) moveServo.move_servo_ext(90, 0, 25)
def main(): moveServo.init_candy() while (1 > 0): iotivity() cameraRead.read_image(file) detected = faceDetect.face_detect(file) if (detected != None): interact() time.sleep(3)