CircuitPython/busio.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
equal deleted inserted replaced
6:81a2208f13e4 7:e336d6afc5a6
44 44
45 def write_bit(self, value): 45 def write_bit(self, value):
46 pass 46 pass
47 47
48 class SPI(): 48 class SPI():
49 frequency = 0
50
49 def __init__(self, clock, MOSI=None, MISO=None): 51 def __init__(self, clock, MOSI=None, MISO=None):
50 pass 52 pass
51 53
52 def deinit(self): 54 def deinit(self):
53 pass 55 pass
69 pass 71 pass
70 72
71 def write_readinto(self, buffer_out, buffer_in, *, out_start=0, 73 def write_readinto(self, buffer_out, buffer_in, *, out_start=0,
72 out_end=None, in_start=0, in_end=None): 74 out_end=None, in_start=0, in_end=None):
73 pass 75 pass
74
75 @property
76 def frequency(self):
77 pass
78 76
79 class UART(): 77 class UART():
78 baudrate = 0
79 in_waiting = 0
80
80 def __init__(self, x, rx, *, baudrate=9600, bits=8, parity=None, stop=1, 81 def __init__(self, x, rx, *, baudrate=9600, bits=8, parity=None, stop=1,
81 timeout=1, receiver_buffer_size=64): 82 timeout=1, receiver_buffer_size=64):
82 pass 83 pass
83 84
84 def deinit(self): 85 def deinit(self):
94 pass 95 pass
95 96
96 def write(self, buf): 97 def write(self, buf):
97 pass 98 pass
98 99
99 @property
100 def baudrate(self):
101 pass
102
103 @property
104 def in_waiting(self):
105 pass
106
107 def reset_input_buffer(self): 100 def reset_input_buffer(self):
108 pass 101 pass

eric ide

mercurial