Microbit/microbit/i2c.py

changeset 0
b3daa2ebea2f
equal deleted inserted replaced
-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.i2c' module.
8 """
9
10 from microbit import pin19, pin20
11
12 def init(freq=100000, sda=pin20, scl=pin19):
13 pass
14
15 def scan():
16 pass
17
18 def read(addr, n, repeat=False):
19 pass
20
21 def write(addr, buf, repeat=False):
22 pass

eric ide

mercurial