CircuitPython/uio.py

Sun, 04 Apr 2021 16:54:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Apr 2021 16:54:03 +0200
changeset 11
c8198736bff3
parent 7
e336d6afc5a6
permissions
-rw-r--r--

Updated BBC micro:bit APIs for V2.

7
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Module containing stubs for API generation of the def 'uiodef' module.
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 """
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 def open(name, mode='r', **kwargs):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 class FileIO():
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 def __init__(self, name, mode='r', **kwargs):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 def close(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 def flush(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 def read(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 def readinto(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 def readline(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 def readlines(self, hint=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 def seek(self, offset, whence=0):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38 def tell(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 def write(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
43
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 class TextIOWrapper():
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45 def __init__(self, name, mode='r', **kwargs):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48 def close(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
50
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
51 def flush(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54 def read(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
55 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
56
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
57 def readinto(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
58 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
59
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
60 def readline(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
61 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
62
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
63 def readlines(self, hint=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
64 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
65
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
66 def seek(self, offset, whence=0):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
67 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
68
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
69 def tell(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
70 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
71
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
72 def write(self, s):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
73 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
74
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
75 class StringIO():
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
76 def __init__(self, initial_value=""):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
77 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
78
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
79 def close(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
80 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
81
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
82 def flush(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
83 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
84
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
85 def getvalue(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
86 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
87
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
88 def read(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
89 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
90
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
91 def readinto(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
92 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
93
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
94 def readline(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
95 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
96
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
97 def seek(self, offset, whence=0):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
98 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
99
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
100 def write(self, s):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
101 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
102
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
103
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
104 class BytesIO():
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
105 def __init__(self, initial_value=b""):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
106 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
107
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
108 def close(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
109 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
110
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
111 def flush(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
112 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
113
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
114 def getvalue(self):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
115 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
116
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
117 def read(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
118 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
119
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
120 def readinto(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
121 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
122
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
123 def readline(self, size=-1):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
124 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
125
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
126 def seek(self, offset, whence=0):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
127 pass
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
128
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
129 def write(self, b):
e336d6afc5a6 CircuitPython: added more stub files.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
130 pass

eric ide

mercurial