Microbit/microbit/spi.py

Sat, 24 Aug 2019 17:04:25 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 24 Aug 2019 17:04:25 +0200
changeset 0
b3daa2ebea2f
permissions
-rw-r--r--

MicroPython stubs project started

# -*- 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

eric ide

mercurial