-1:000000000000 | 0:b3daa2ebea2f |
---|---|
1 # -*- coding: utf-8 -*- | |
2 | |
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> | |
4 # | |
5 | |
6 """ | |
7 Module containing stubs for API generation of the 'microbit.spi' module. | |
8 """ | |
9 | |
10 from microbit import pin13, pin14, pin15 | |
11 | |
12 def init(baudrate=1000000, bits=8, mode=0, sclk=pin13, mosi=pin15, miso=pin14): | |
13 pass | |
14 | |
15 def read(nbytes): | |
16 pass | |
17 | |
18 def write(buffer): | |
19 pass | |
20 | |
21 def write_readinto(out_buffer, in_buffer): | |
22 pass |