diff -r 000000000000 -r b3daa2ebea2f Microbit/microbit/spi.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Microbit/microbit/spi.py Sat Aug 24 17:04:25 2019 +0200 @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module containing stubs for API generation of the 'microbit.spi' module. +""" + +from microbit import pin13, pin14, pin15 + +def init(baudrate=1000000, bits=8, mode=0, sclk=pin13, mosi=pin15, miso=pin14): + pass + +def read(nbytes): + pass + +def write(buffer): + pass + +def write_readinto(out_buffer, in_buffer): + pass