Skip to content

Instantly share code, notes, and snippets.

@xyb
Last active February 11, 2023 11:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save xyb/9a4c8d7fba92e6e3761a to your computer and use it in GitHub Desktop.
Save xyb/9a4c8d7fba92e6e3761a to your computer and use it in GitHub Desktop.
Micro Python Library Reference

Micro Python Reference

cmath mathematical functions for complex numbers
gc control the garbage collector
math mathematical functions
os basic “operating system” services
select Provides select function to wait for events on a stream
struct pack and unpack primitive data types
sys system specific functions
time time related functions
ubinascii binary/ASCII conversions
uhashlib hashing algorithm
uheapq heap queue algorithm
ujson JSON encoding and decoding
ure regular expressions
usocket socket module
pyb Functions related to the pyboard
pyb.Accel accelerometer control
pyb.ADC analog to digital conversion: read analog values on a pin
pyb.CAN controller area network communication bus
pyb.DAC digital to analog conversion
pyb.ExtInt configure I/O pins to interrupt on external events
pyb.I2C a two-wire serial protocol
pyb.LCD LCD control for the LCD touch-sensor pyskin
pyb.LED LED object
pyb.Pin control I/O pins
pyb.PinAF Pin Alternate Functions
pyb.RTC real time clock
pyb.Servo 3-wire hobby servo driver
pyb.SPI a master-driven serial protocol
pyb.Switch switch object
pyb.Timer control internal timers
pyb.TimerChannel setup a channel for a timer
pyb.UART duplex serial communication bus
pyb.USB_VCP USB virtual comm port
network network configuration
network.CC3k TI CC3000 Wi-Fi modules
network.WIZnet5k This class allows you to control WIZnet5x00 Ethernet adaptors based on the W5200 and W5500 chipsets (only W5200 tested)
NRF24L01 The nRF24L01 is a highly integrated, ultra low power (ULP) 2Mbps RF transceiver IC for the 2.4GHz ISM (Industrial, Scientific and Medical) band
abc
asyncio_slow
base64
binascii
binhex
bisect
calendar
cmd
collections
collections.defaultdict
collections.deque
copy
csv
datetime
dbm
email.charset
email.encoders
email.errors
email.feedparser
email.header
email.internal
email.message
email.parser
email.utils
errno
fcntl
fnmatch
functools
getopt
getpass
glob
gzip
hashlib
heapq
html
html.entities
http.client
io
ipaddress
itertools
json
keyword
logging
mailbox
mimetypes
multiprocessing
optparse
os
os.path
pickle
posixpath
pprint
pty
queue
quopri
random
re-pcre
reprlib
sched
select
shelve
shlex
shutil
socket
sqlite3
stat
string
subprocess
tarfile
tempfile
test.pystone
test.support
timeit
traceback
types
uasyncio
uasyncio.core
unittest
urllib
urllib.parse
uu
warnings
zipfile

Third-party

Driver

BMP085 BMP085 or BMP180 Barometric Pressure/Temperature/Altitude Sensor
BMP180 BMP085 or BMP180 Barometric Pressure/Temperature/Altitude Sensor
BMP180 bmp180 is a micropython module for the Bosch BMP180 sensor
DHT22 DHT22 temperature and humidity sensor
HD44780 Python code for talking to character based LCDs
HD44780 A simple class for controlling the HD44780 from a micropython pyboard
hobbytronics-lcd-serial-adapter Handles LCD serial adapter from Hobbytronics, Allows displaying text on various 16-pin LCD displays
Matrix8x8 MicroPython driver for AdaFruit 8×8 LED Matrix display with HT16K33 backpack.
MAX6675 The MAX6675 performs cold-junction compensation and digitizes the signal from a type-K thermocouple.
MAX31865 The Maxim MAX31865 is an easy-to-use resistance-to-digital converter optimized for platinum resistance temperature detectors (RTDs).
MAX31885 MAX31855 Digital K-Type Thermocouple Sensor
MPL115A2 Support for the MPL115A2 barometric pressure sensor from a pyboard.
MPU9150 mpu9150 is a micropython module for the InvenSense MPU9150 sensor. It measures acceleration, turn rate and the magnetic field in three axis.
SC1602 SC1602 16×2 Characters Serial LCD Module
SHT15 Sensirion SHT1x & SHT7x family temperature and humidity sensors
SSD1306 SSD1306 is a single-chip CMOS OLED/PLED driver
ST7735 ST7735 – Sainsmart LCD display driver
TMP102 Support for the TI tmp102 I2C temperature sensor.
uln2003_stepper_motor Handles common 4-pin ULN2003 stepper motor controllers
ULTRASONIC Ultrasonic: Library for HC-SR04 and SRF04 sensors.
WS2812 MicroPython driver for WS2812, WS2812B, and compatible RGB LEDs. These are popular RGB LEDs used for example in AdaFruit NeoPixels rings, stripes, boards, etc.

General

Flavin Flavin is a tool to prune all modules down to the minimal amount of code required to support a single top level python program, resulting in a minimal set of python code for loading into Micro Python
I2C Extra functions in python to extend the base I2C functions in micropython
microasync Green threads and CSP for micropython.
MicroPyduino Write for Arduino in Python. Micropython setup as an Arduino.
micropython-serial pySerial-like interface for MicroPython (unix port)
micropython-wrap Provide convenient wrapping of C and C++ functions and classes so they can be called from Micro Python
Midi Midi for Micro Python
uaiohttpclient Async HTTP client for MicroPython and its uasyncio
uorm uorm is very lightweight “Anti-ORM” style ORM (Object-Relational Mapper)
uprofile uprofile provides a class for simple profiling of functions in micropython
usched A set of libraries for writing threaded code on the MicroPython board.
upy-shell This is a very simple command line based shell for MicroPython
upy-stm-flash MicroPython STM Read Protection Module
utemplate Micro template engine with low memory usage, intended for MicroPythoon
uzlib RadicallyDeflate/Zlib-compatible LZ77 compression library

Project

JukeNode Audio Collection of utilities & applications for a network-aware digital audio distribution facility
libmpython Produces a static library version of micropython for use with Arduino build environments
MicroPython-Examples MicroPython Examples (similar to Arduino)
OpenMV OpenMV is an open-source tiny machine vision module based on the STM32F4xx ARM Cortex-M4 MCU and the OV2640 JPEG sensor. OpenMV is programmable in Python3 (MicroPython) and capable of doing face detection and tracking, keypoint extraction, color tracking and more.
picoweb Really minimal web application framework for MicroPython and its uasyncio
pybkick Push software to a pyboard quickly, without using USB Mass Storage mode
snake Snake game made for simple Micropython console shown as demo for my PyCon PL 2014 presentation
upy-examples MicroPython example code
YoMicro Yo app functionality built for the micropython microcontroller
Copy link

ghost commented Nov 17, 2018

Any library for openMV which is resemble like openCV for python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment