forked from lvgl-micropython/lvgl_micropython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spi.pyi
52 lines (42 loc) · 1.08 KB
/
spi.pyi
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
from typing import Optional, Any, Callable, Union, ClassVar
from array import array
class SPI(object):
MSB: ClassVar[int] = ...
LSB: ClassVar[int] = ...
def __init__(
self,
id: int,
baudrate: int,
/,
*,
polarity: int=0,
phase: int=0,
bits: int=8,
firstbit: int=MSB,
sck: Union[str, int]=None,
mosi: Union[str, int]=None,
miso: Union[str, int]=None,
cs: Union[str, int]=None,
):
...
def deinit(self) -> None:
...
def read(self, nbytes: int, write: int=0x00, /) -> bytes:
...
def readinto(self, buf: Union[memoryview, bytes, bytearray, array], write: int=0x00, /) -> None:
...
def write(self, buf: Union[memoryview, bytes, bytearray, array], /) -> None:
...
def write_readinto(
self,
write_buf: Union[memoryview, bytes, bytearray, array],
read_buf: Union[memoryview, bytes, bytearray, array],
/
) -> None:
...
del ClassVar
del Callable
del Union
del Any
del Optional
del array