MicroPython
1.9.2
Quick reference for the pyboard
General information about the pyboard
MicroPython tutorial for the pyboard
MicroPython libraries
The MicroPython language
MicroPython differences from CPython
MicroPython license information
MicroPython
Docs
»
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
K
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
|
X
|
Y
|
Z
_
__call__() (machine.Pin method)
(pyb.Switch method)
__contains__() (btree.btree method)
__detitem__() (btree.btree method)
__getitem__() (btree.btree method)
__iter__() (btree.btree method)
__setitem__() (btree.btree method)
__str__() (pyb.Pin method)
(pyb.pinaf method)
A
a2b_base64() (in module ubinascii)
abs() (built-in function)
AbstractNIC (class in network)
accept() (usocket.socket method)
acos() (in module math)
acosh() (in module math)
active() (in module network)
ADC (class in machine)
adcchannel() (in module machine)
addressof() (in module uctypes)
af() (pyb.Pin method)
AF_INET (in module usocket)
AF_INET6 (in module usocket)
af_list() (pyb.Pin method)
alarm() (machine.RTC method)
alarm_left() (machine.RTC method)
all() (built-in function)
alloc_emergency_exception_buf() (in module micropython)
angle() (pyb.Servo method)
any() (built-in function)
(machine.UART method)
(pyb.CAN method)
(pyb.UART method)
(pyb.USB_VCP method)
append() (array.array.array method)
argv (in module sys)
array (module)
array.array (class in array)
asin() (in module math)
asinh() (in module math)
AssertionError
atan() (in module math)
atan2() (in module math)
atanh() (in module math)
AttributeError
B
b2a_base64() (in module ubinascii)
baremetal
BIG_ENDIAN (in module uctypes)
bin() (built-in function)
bind() (usocket.socket method)
blit() (framebuf.FrameBuffer method)
board
bool (built-in class)
bootloader() (in module pyb)
btree (module)
bytearray (built-in class)
bytearray_at() (in module uctypes)
byteorder (in module sys)
bytes (built-in class)
bytes_at() (in module uctypes)
BytesIO (class in uio)
C
calcsize() (in module ustruct)
calibration() (pyb.RTC method)
(pyb.Servo method)
callable() (built-in function)
callback() (pyb.Switch method)
(pyb.Timer method)
(pyb.timerchannel method)
CAN.LIST16 (in module pyb)
CAN.LIST32 (in module pyb)
CAN.LOOPBACK (in module pyb)
CAN.MASK16 (in module pyb)
CAN.MASK32 (in module pyb)
CAN.NORMAL (in module pyb)
CAN.SILENT (in module pyb)
CAN.SILENT_LOOPBACK (in module pyb)
cancel() (machine.RTC method)
capture() (pyb.timerchannel method)
CC3K (class in network)
CC3K.WEP (in module network)
CC3K.WPA (in module network)
CC3K.WPA2 (in module network)
ceil() (in module math)
channel() (machine.ADC method)
(pyb.Timer method)
chdir() (in module uos)
chr() (built-in function)
classmethod() (built-in function)
clearfilter() (pyb.CAN method)
close() (btree.btree method)
(pyb.USB_VCP method)
(usocket.socket method)
cmath (module)
collect() (in module gc)
command() (pyb.LCD method)
compare() (pyb.timerchannel method)
compile() (built-in function)
(in module ure)
complex (built-in class)
config() (in module network)
connect() (in module network)
(network.cc3k method)
(usocket.socket method)
const() (in module micropython)
contrast() (pyb.LCD method)
copysign() (in module math)
cos() (in module cmath)
(in module math)
cosh() (in module math)
counter() (pyb.Timer method)
CPython
D
datetime() (pyb.RTC method)
DEBUG (in module ure)
debug() (pyb.Pin class method)
DecompIO (class in uzlib)
decompress() (in module uzlib)
deepsleep() (in module machine)
degrees() (in module math)
deinit() (machine.ADC method)
(machine.I2C method)
(machine.RTC method)
(machine.SD method)
(machine.SPI method)
(machine.Timer method)
(machine.UART method)
(machine.adcchannel method)
(pyb.CAN method)
(pyb.DAC method)
(pyb.I2C method)
(pyb.SPI method)
(pyb.Timer method)
(pyb.UART method)
delattr() (built-in function)
delay() (in module pyb)
DESC (in module btree)
dict (built-in class)
dict() (pyb.Pin class method)
digest() (uhashlib.hash method)
dir() (built-in function)
disable() (in module gc)
(pyb.ExtInt method)
disable_irq() (in module machine)
(in module pyb)
disconnect() (in module network)
(network.cc3k method)
divmod() (built-in function)
dot() (lcd160cr.LCD160CR method)
dot_no_clip() (lcd160cr.LCD160CR method)
drive() (machine.Pin method)
dumps() (in module ujson)
dupterm() (in module uos)
E
e (in module cmath)
(in module math)
elapsed_micros() (in module pyb)
elapsed_millis() (in module pyb)
enable() (in module gc)
(pyb.ExtInt method)
enable_irq() (in module machine)
(in module pyb)
enumerate() (built-in function)
erase() (lcd160cr.LCD160CR method)
erf() (in module math)
erfc() (in module math)
errorcode (in module uerrno)
eval() (built-in function)
Exception
exec() (built-in function)
exit() (in module sys)
exp() (in module cmath)
(in module math)
expm1() (in module math)
extend() (array.array.array method)
ExtInt.IRQ_FALLING (in module pyb)
ExtInt.IRQ_RISING (in module pyb)
ExtInt.IRQ_RISING_FALLING (in module pyb)
F
fabs() (in module math)
fast_spi() (lcd160cr.LCD160CR method)
fault_debug() (in module pyb)
feed() (machine.wdt method)
feed_wdt() (lcd160cr.LCD160CR method)
FileIO (class in uio)
fill() (framebuf.FrameBuffer method)
(pyb.LCD method)
fill_rect() (framebuf.FrameBuffer method)
filter() (built-in function)
filtered_xyz() (pyb.Accel method)
float (built-in class)
floor() (in module math)
flush() (btree.btree method)
fmod() (in module math)
framebuf (module)
framebuf.GS4_HMSB (in module framebuf)
framebuf.MONO_HLSB (in module framebuf)
framebuf.MONO_HMSB (in module framebuf)
framebuf.MONO_VLSB (in module framebuf)
framebuf.RGB565 (in module framebuf)
FrameBuffer (class in framebuf)
freq() (in module machine)
(in module pyb)
(pyb.Timer method)
frexp() (in module math)
from_bytes() (int class method)
frozenset (built-in class)
G
gamma() (in module math)
gc (module)
get() (btree.btree method)
(pyb.LCD method)
get_line() (lcd160cr.LCD160CR method)
get_pixel() (lcd160cr.LCD160CR method)
get_touch() (lcd160cr.LCD160CR method)
getaddrinfo() (in module usocket)
getattr() (built-in function)
getcwd() (in module uos)
getvalue() (uio.BytesIO method)
globals() (built-in function)
GPIO
GPIO port
gpio() (pyb.Pin method)
group() (ure.match method)
H
hard_reset() (in module pyb)
hasattr() (built-in function)
hash() (built-in function)
have_cdc() (in module pyb)
heap_lock() (in module micropython)
heap_unlock() (in module micropython)
heapify() (in module uheapq)
heappop() (in module uheapq)
heappush() (in module uheapq)
hex() (built-in function)
hexdigest() (uhashlib.hash method)
hexlify() (in module ubinascii)
hid() (in module pyb)
hline() (framebuf.FrameBuffer method)
I
I2C (class in machine)
I2C.MASTER (in module pyb)
I2C.SLAVE (in module pyb)
id() (built-in function)
idle() (in module machine)
ifconfig() (in module network)
(network.cc3k method)
(network.wiznet5k method)
ilistdir() (in module uos)
implementation (in module sys)
ImportError
INCL (in module btree)
index() (pyb.pinaf method)
IndexError
info() (in module pyb)
(pyb.RTC method)
init() (machine.ADC method)
(machine.I2C method)
(machine.Pin method)
(machine.RTC method)
(machine.SD method)
(machine.SPI method)
(machine.adcchannel method)
(pyb.CAN method)
(pyb.DAC method)
(pyb.I2C method)
(pyb.Pin method)
(pyb.SPI method)
(pyb.Timer method)
(pyb.UART method)
initfilterbanks() (pyb.CAN class method)
input() (built-in function)
int (built-in class)
intensity() (pyb.LED method)
ipoll() (uselect.poll method)
IPPROTO_SEC (in module usocket)
IPPROTO_TCP (in module usocket)
IPPROTO_UDP (in module usocket)
irq() (machine.Pin method)
(machine.RTC method)
is_ready() (pyb.I2C method)
is_touched() (lcd160cr.LCD160CR method)
isconnected() (in module network)
(network.cc3k method)
(pyb.USB_VCP method)
isfinite() (in module math)
isinf() (in module math)
isinstance() (built-in function)
isnan() (in module math)
issubclass() (built-in function)
items() (btree.btree method)
iter() (built-in function)
J
jpeg() (lcd160cr.LCD160CR method)
jpeg_data() (lcd160cr.LCD160CR method)
jpeg_start() (lcd160cr.LCD160CR method)
K
kbd_intr() (in module micropython)
KeyboardInterrupt
KeyError
keys() (btree.btree method)
L
LCD160CR (class in lcd160cr)
lcd160cr (module)
LCD160CR.h (in module lcd160cr)
lcd160cr.LANDSCAPE (in module lcd160cr)
lcd160cr.LANDSCAPE_UPSIDEDOWN (in module lcd160cr)
lcd160cr.PORTRAIT (in module lcd160cr)
lcd160cr.PORTRAIT_UPSIDEDOWN (in module lcd160cr)
lcd160cr.STARTUP_DECO_INFO (in module lcd160cr)
lcd160cr.STARTUP_DECO_MLOGO (in module lcd160cr)
lcd160cr.STARTUP_DECO_NONE (in module lcd160cr)
LCD160CR.w (in module lcd160cr)
ldexp() (in module math)
len() (built-in function)
lgamma() (in module math)
light() (pyb.LCD method)
line() (framebuf.FrameBuffer method)
(lcd160cr.LCD160CR method)
(pyb.ExtInt method)
line_no_clip() (lcd160cr.LCD160CR method)
list (built-in class)
listdir() (in module uos)
listen() (usocket.socket method)
LITTLE_ENDIAN (in module uctypes)
loads() (in module ujson)
locals() (built-in function)
localtime() (in module utime)
log() (in module cmath)
(in module math)
log10() (in module cmath)
(in module math)
log2() (in module math)
M
machine (module)
machine.DEEPSLEEP (in module machine)
machine.DEEPSLEEP_RESET (in module machine)
machine.HARD_RESET (in module machine)
machine.IDLE (in module machine)
machine.PIN_WAKE (in module machine)
machine.PWRON_RESET (in module machine)
machine.RTC_WAKE (in module machine)
machine.SLEEP (in module machine)
machine.SOFT_RESET (in module machine)
machine.WDT_RESET (in module machine)
machine.WLAN_WAKE (in module machine)
main() (in module pyb)
makefile() (usocket.socket method)
map() (built-in function)
mapper() (pyb.Pin class method)
match() (in module ure)
(ure.regex method)
math (module)
max() (built-in function)
maxsize (in module sys)
MCU
mem_alloc() (in module gc)
mem_free() (in module gc)
mem_info() (in module micropython)
mem_read() (pyb.I2C method)
mem_write() (pyb.I2C method)
MemoryError
memoryview (built-in class)
micropython (module)
MicroPython port
MicroPython Unix port
micropython-lib
micros() (in module pyb)
millis() (in module pyb)
min() (built-in function)
mkdir() (in module uos)
mktime() (in module utime)
mode() (machine.Pin method)
(pyb.Pin method)
modf() (in module math)
modify() (uselect.poll method)
modules (in module sys)
mount() (in module pyb)
N
name() (pyb.Pin method)
(pyb.pinaf method)
namedtuple() (in module ucollections)
NameError
names() (pyb.Pin method)
NATIVE (in module uctypes)
network (module)
next() (built-in function)
noise() (pyb.DAC method)
NotImplementedError
now() (machine.RTC method)
O
object (built-in class)
oct() (built-in function)
off() (machine.Pin method)
(machine.Signal method)
(pyb.LED method)
on() (machine.Pin method)
(machine.Signal method)
(pyb.LED method)
open() (built-in function)
(in module btree)
(in module uio)
opt_level() (in module micropython)
ord() (built-in function)
OrderedDict() (in module ucollections)
OSError
P
pack() (in module ustruct)
pack_into() (in module ustruct)
patch_program() (network.cc3k method)
patch_version() (network.cc3k method)
path (in module sys)
period() (pyb.Timer method)
phase() (in module cmath)
pi (in module cmath)
(in module math)
Pin (class in machine)
pin() (pyb.Pin method)
Pin.AF_OD (in module pyb)
Pin.AF_PP (in module pyb)
Pin.ALT (in module machine)
Pin.ALT_OPEN_DRAIN (in module machine)
Pin.ANALOG (in module pyb)
Pin.HIGH_POWER (in module machine)
Pin.IN (in module machine)
(in module pyb)
Pin.IRQ_FALLING (in module machine)
Pin.IRQ_HIGH_LEVEL (in module machine)
Pin.IRQ_LOW_LEVEL (in module machine)
Pin.IRQ_RISING (in module machine)
Pin.LOW_POWER (in module machine)
Pin.MED_POWER (in module machine)
Pin.OPEN_DRAIN (in module machine)
Pin.OUT (in module machine)
Pin.OUT_OD (in module pyb)
Pin.OUT_PP (in module pyb)
Pin.PULL_DOWN (in module machine)
(in module pyb)
Pin.PULL_NONE (in module pyb)
Pin.PULL_UP (in module machine)
(in module pyb)
pixel() (framebuf.FrameBuffer method)
(pyb.LCD method)
platform (in module sys)
polar() (in module cmath)
poll() (in module uselect)
(uselect.poll method)
poly_dot() (lcd160cr.LCD160CR method)
poly_line() (lcd160cr.LCD160CR method)
port
port() (pyb.Pin method)
pow() (built-in function)
(in module math)
prescaler() (pyb.Timer method)
print() (built-in function)
print_exception() (in module sys)
property() (built-in function)
pull() (machine.Pin method)
(pyb.Pin method)
pulse_width() (pyb.Servo method)
(pyb.timerchannel method)
pulse_width_percent() (pyb.timerchannel method)
pyb (module)
pyb.Accel (class in pyb)
pyb.ADC (class in pyb)
pyb.CAN (class in pyb)
pyb.DAC (class in pyb)
pyb.ExtInt (class in pyb)
pyb.I2C (class in pyb)
pyb.LCD (class in pyb)
pyb.LED (class in pyb)
pyb.Pin (class in pyb)
pyb.RTC (class in pyb)
pyb.Servo (class in pyb)
pyb.SPI (class in pyb)
pyb.Switch (class in pyb)
pyb.Timer (class in pyb)
pyb.UART (class in pyb)
pyb.USB_HID (class in pyb)
pyb.USB_VCP (class in pyb)
Q
qstr_info() (in module micropython)
R
radians() (in module math)
range() (built-in function)
read() (machine.SPI method)
(machine.UART method)
(pyb.ADC method)
(pyb.UART method)
(pyb.USB_VCP method)
(usocket.socket method)
read_timed() (pyb.ADC method)
readchar() (pyb.UART method)
readfrom() (machine.I2C method)
readfrom_into() (machine.I2C method)
readfrom_mem() (machine.I2C method)
readfrom_mem_into() (machine.I2C method)
readinto() (machine.I2C method)
(machine.SPI method)
(machine.UART method)
(pyb.UART method)
(pyb.USB_VCP method)
(usocket.socket method)
readline() (machine.UART method)
(pyb.UART method)
(pyb.USB_VCP method)
(usocket.socket method)
readlines() (pyb.USB_VCP method)
rect() (framebuf.FrameBuffer method)
(in module cmath)
(lcd160cr.LCD160CR method)
rect_interior() (lcd160cr.LCD160CR method)
rect_interior_no_clip() (lcd160cr.LCD160CR method)
rect_no_clip() (lcd160cr.LCD160CR method)
rect_outline() (lcd160cr.LCD160CR method)
rect_outline_no_clip() (lcd160cr.LCD160CR method)
recv() (pyb.CAN method)
(pyb.I2C method)
(pyb.SPI method)
(pyb.USB_HID method)
(pyb.USB_VCP method)
(usocket.socket method)
recvfrom() (usocket.socket method)
reg() (pyb.pinaf method)
register() (uselect.poll method)
regs() (network.wiznet5k method)
(pyb.ExtInt class method)
remove() (in module uos)
rename() (in module uos)
repl_uart() (in module pyb)
repr() (built-in function)
reset() (in module machine)
(lcd160cr.LCD160CR method)
reset_cause() (in module machine)
reversed() (built-in function)
rgb() (lcd160cr.LCD160CR static method)
rmdir() (in module uos)
rng() (in module pyb)
round() (built-in function)
RTC (class in machine)
RTC.ALARM0 (in module machine)
RuntimeError
rxcallback() (pyb.CAN method)
S
save_to_flash() (lcd160cr.LCD160CR method)
scan() (in module network)
(machine.I2C method)
(pyb.I2C method)
schedule() (in module micropython)
screen_dump() (lcd160cr.LCD160CR method)
screen_load() (lcd160cr.LCD160CR method)
scroll() (framebuf.FrameBuffer method)
SD (class in machine)
search() (in module ure)
(ure.regex method)
select() (in module uselect)
send() (pyb.CAN method)
(pyb.I2C method)
(pyb.SPI method)
(pyb.USB_HID method)
(pyb.USB_VCP method)
(usocket.socket method)
send_recv() (pyb.SPI method)
sendall() (usocket.socket method)
sendbreak() (machine.UART method)
(pyb.UART method)
sendto() (usocket.socket method)
set (built-in class)
set_brightness() (lcd160cr.LCD160CR method)
set_font() (lcd160cr.LCD160CR method)
set_i2c_addr() (lcd160cr.LCD160CR method)
set_orient() (lcd160cr.LCD160CR method)
set_pen() (lcd160cr.LCD160CR method)
set_pixel() (lcd160cr.LCD160CR method)
set_pos() (lcd160cr.LCD160CR method)
set_power() (lcd160cr.LCD160CR method)
set_scroll() (lcd160cr.LCD160CR method)
set_scroll_buf() (lcd160cr.LCD160CR method)
set_scroll_win() (lcd160cr.LCD160CR method)
set_scroll_win_param() (lcd160cr.LCD160CR method)
set_spi_win() (lcd160cr.LCD160CR method)
set_startup_deco() (lcd160cr.LCD160CR method)
set_text_color() (lcd160cr.LCD160CR method)
set_uart_baudrate() (lcd160cr.LCD160CR method)
setattr() (built-in function)
setblocking() (usocket.socket method)
setfilter() (pyb.CAN method)
setinterrupt() (pyb.USB_VCP method)
setsockopt() (usocket.socket method)
settimeout() (usocket.socket method)
show() (pyb.LCD method)
show_framebuf() (lcd160cr.LCD160CR method)
Signal (class in machine)
sin() (in module cmath)
(in module math)
sinh() (in module math)
sizeof() (in module uctypes)
sleep() (in module machine)
(in module utime)
sleep_ms() (in module utime)
sleep_us() (in module utime)
slice (built-in class)
SOCK_DGRAM (in module usocket)
SOCK_STREAM (in module usocket)
socket() (in module usocket)
socket.error
sorted() (built-in function)
source_freq() (pyb.Timer method)
speed() (pyb.Servo method)
SPI (class in machine)
SPI.LSB (in module machine)
(in module pyb)
SPI.MASTER (in module machine)
(in module pyb)
SPI.MSB (in module machine)
(in module pyb)
SPI.SLAVE (in module pyb)
split() (ure.regex method)
sqrt() (in module cmath)
(in module math)
ssl.CERT_NONE (in module ussl)
ssl.CERT_OPTIONAL (in module ussl)
ssl.CERT_REQUIRED (in module ussl)
ssl.SSLError (in module ussl)
ssl.wrap_socket() (in module ussl)
stack_use() (in module micropython)
standby() (in module pyb)
start() (machine.I2C method)
stat() (in module uos)
staticmethod() (built-in function)
status() (in module network)
statvfs() (in module uos)
stderr (in module sys)
stdin (in module sys)
stdout (in module sys)
stop() (in module pyb)
(machine.I2C method)
StopIteration
str (built-in class)
StringIO (class in uio)
struct (class in uctypes)
sum() (built-in function)
super() (built-in function)
swint() (pyb.ExtInt method)
sync() (in module pyb)
(in module uos)
SyntaxError
sys (module)
SystemExit
T
tan() (in module math)
tanh() (in module math)
text() (framebuf.FrameBuffer method)
(pyb.LCD method)
TextIOWrapper (class in uio)
threshold() (in module gc)
ticks_add() (in module utime)
ticks_cpu() (in module utime)
ticks_diff() (in module utime)
ticks_ms() (in module utime)
ticks_us() (in module utime)
tilt() (pyb.Accel method)
time() (in module utime)
time_pulse_us() (in module machine)
Timer (class in machine)
Timer.ONE_SHOT (in module machine)
Timer.PERIODIC (in module machine)
to_bytes() (int method)
toggle() (pyb.LED method)
touch_config() (lcd160cr.LCD160CR method)
triangle() (pyb.DAC method)
trunc() (in module math)
tuple (built-in class)
type() (built-in function)
TypeError
U
UART (class in machine)
UART.CTS (in module pyb)
UART.RTS (in module pyb)
ubinascii (module)
ucollections (module)
uctypes (module)
udelay() (in module pyb)
uerrno (module)
uhashlib (module)
uhashlib.md5 (class in uhashlib)
uhashlib.sha1 (class in uhashlib)
uhashlib.sha256 (class in uhashlib)
uheapq (module)
uio (module)
ujson (module)
unhexlify() (in module ubinascii)
unique_id() (in module machine)
(in module pyb)
unpack() (in module ustruct)
unpack_from() (in module ustruct)
unregister() (uselect.poll method)
uos (module)
update() (uhashlib.hash method)
upip
urandom() (in module uos)
ure (module)
usb_mode() (in module pyb)
uselect (module)
usocket (module)
ussl (module)
ustruct (module)
utime (module)
uzlib (module)
V
value() (machine.adcchannel method)
(machine.Pin method)
(machine.Signal method)
(pyb.Pin method)
(pyb.Switch method)
ValueError
values() (btree.btree method)
version (in module sys)
version_info (in module sys)
vline() (framebuf.FrameBuffer method)
W
wakeup() (pyb.RTC method)
WDT (class in machine)
wfi() (in module pyb)
WIZNET5K (class in network)
write() (lcd160cr.LCD160CR method)
(machine.I2C method)
(machine.SPI method)
(machine.UART method)
(pyb.DAC method)
(pyb.LCD method)
(pyb.UART method)
(pyb.USB_VCP method)
(usocket.socket method)
write_readinto() (machine.SPI method)
write_timed() (pyb.DAC method)
writechar() (pyb.UART method)
writeto() (machine.I2C method)
writeto_mem() (machine.I2C method)
X
x() (pyb.Accel method)
Y
y() (pyb.Accel method)
Z
z() (pyb.Accel method)
ZeroDivisionError
zip() (built-in function)
Ports and Versions
pyboard (v1.9.2)
Ports
unix
pyboard
wipy
esp8266
Versions
v1.4.4
v1.4.5
v1.4.6
v1.5
v1.5.1
v1.5.2
v1.6
v1.7
v1.8
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.8.5
v1.8.6
v1.8.7
v1.9
v1.9.1
v1.9.2
latest
Downloads
PDF
External links
micropython.org
GitHub