-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate2Dummy.py
67 lines (44 loc) · 1.06 KB
/
create2Dummy.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
from packetsDummy import SensorPacketDecoder
class Create2(object):
def __init__(self, port):
self.port = port
def close(self):
return
def start(self):
return
def getMode(self):
return
def wake(self):
return
def reset(self):
return
def stop(self):
return
def safe(self):
return
def full(self):
return
def power(self):
return
def drive_stop(self):
return
def limit(self, val, low, hi):
return
def drive_direct(self, r_vel, l_vel):
return
def drive_pwm(self, r_pwm, l_pwm):
return
def led(self, led_bits = 0, power_color = 0, power_intensity = 0):
return
def digit_led_ascii(self, display_string):
return
def clearSongMemory(self):
return
def createSong(self, song_num, notes):
return
def playSong(self, song_num):
return
def get_sensors(self):
sensors = SensorPacketDecoder()
return sensors