Added pyi to SPI.c
This commit is contained in:
parent
1e94d18db5
commit
a18b991ca9
@ -40,6 +40,19 @@
|
||||
#include "py/runtime.h"
|
||||
#include "supervisor/shared/translate.h"
|
||||
|
||||
class SPI:
|
||||
def __init__(self, clock: microcontroller.Pin, MOSI: microcontroller.Pin = None, MISO: microcontroller.Pin = None): ...
|
||||
def deinit(self, ) -> Any: ...
|
||||
def __enter__(self, ) -> Any: ...
|
||||
def __exit__(self, ) -> Any: ...
|
||||
def configure(self, *, baudrate: int = 100000, polarity: int = 0, phase: int = 0, bits: int = 8) -> Any: ...
|
||||
def try_lock(self, ) -> Any: ...
|
||||
def unlock(self, ) -> Any: ...
|
||||
def write(self, buffer: bytearray, *, start: Any = 0, end: int = None) -> Any: ...
|
||||
def readinto(self, buffer: bytearray, *, start: Any = 0, end: int = None, write_value: int = 0) -> Any: ...
|
||||
def write_readinto(self, buffer_out: bytearray, buffer_in: bytearray, *, out_start: Any = 0, out_end: int = None, in_start: Any = 0, in_end: int = None) -> Any: ...
|
||||
frequency: Any = ...
|
||||
|
||||
//| .. currentmodule:: busio
|
||||
//|
|
||||
//| :class:`SPI` -- a 3-4 wire serial protocol
|
||||
|
Loading…
x
Reference in New Issue
Block a user