forked from michaelmazzucco/Rbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexec.py
More file actions
41 lines (26 loc) · 631 Bytes
/
exec.py
File metadata and controls
41 lines (26 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 12 00:05:28 2016
@author: Mikes
"""
import threading
import xBeeSerial
import HotKeyGui
from pilotControl import pltInput
import sys
xBee = xBeeSerial.xBeeComm()
GUI = HotKeyGui.Control()
def xBeeThread():
xBee.main()
if __name__=='__main__':
t = threading.Thread(name='xBee_Service', target=xBeeThread)
try:
t.start()
except (KeyboardInterrupt, SystemExit):
t._stop.
sys.exit()
GUI.main()
#for x in range(0,50):
#test = xBee.pltControl.setButtons1(1)
#print(x)
#time.sleep(1)