Skip to content

Instantly share code, notes, and snippets.

@dasguptaanika
dasguptaanika / Leap_Motion_Locker_With_Trans.py
Last active January 21, 2018 12:59
Main Leap Motion API Program - Requires Some Extra Modules to be Installed.
################################################################################
# Copyright (C) 2012-2016 Leap Motion, Inc. All rights reserved. #
# Leap Motion proprietary and confidential. Not for distribution. #
# Use subject to the terms of the Leap Motion SDK Agreement available at #
# https://developer.leapmotion.com/sdk_agreement, or another agreement #
# between Leap Motion and you, your company or other organization. #
################################################################################
import Leap, sys, thread, time, serial, smtplib, hashlib, getpass
import pymysql.cursors
#include <Stepper.h>
const int stepsPerRev = 150;
Stepper stepper1(stepsPerRev,2,4,3,5);
Stepper stepper2(stepsPerRev,6,8,7,9);
void setup() {
//setup code, for running once
//initialize serial communication
Serial.begin(9600);
}