Microbit/microbit/i2c.py

Tue, 27 Aug 2019 12:27:36 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 27 Aug 2019 12:27:36 +0200
changeset 4
f5e2683cdbe6
parent 0
b3daa2ebea2f
permissions
-rw-r--r--

Finished the MicroPython stubs.

# -*- coding: utf-8 -*-

# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module containing stubs for API generation of the 'microbit.i2c' module.
"""

from microbit import pin19, pin20

def init(freq=100000, sda=pin20, scl=pin19):
    pass

def scan():
    pass

def read(addr, n, repeat=False):
    pass

def write(addr, buf, repeat=False):
    pass

eric ide

mercurial