Skip to content

Instantly share code, notes, and snippets.

View psr1428's full-sized avatar
🏠
Working from home

Prashant Ranpura psr1428

🏠
Working from home
View GitHub Profile
@psr1428
psr1428 / leap.py
Created June 25, 2019 05:36
Python leap motion tech
import serial
import time
import pyautogui
ArduinoSerial = serial.Serial('com7',9600) #Create Serial port object called arduinoSerialData
time.sleep(2) #wait for 2 seconds for the communication to get established
while 1:
incoming = str (ArduinoSerial.readline()) #read the serial data and print it as line
print incoming