MicroPython documentation and references¶
- MicroPython libraries
- Python standard libraries and micro-libraries
- Builtin Functions
array
– arrays of numeric datacmath
– mathematical functions for complex numbersgc
– control the garbage collectormath
– mathematical functionsselect
– wait for events on a set of streamssys
– system specific functionsubinascii
– binary/ASCII conversionsucollections
– collection and container typesuhashlib
– hashing algorithmsuheapq
– heap queue algorithmuio
– input/output streamsujson
– JSON encoding and decodinguos
– basic “operating system” servicesure
– regular expressionsusocket
– socket moduleustruct
– pack and unpack primitive data typesutime
– time related functionsuzlib
– zlib decompression
- MicroPython-specific libraries
btree
– simple BTree databaseframebuf
— Frame buffer manipulationmachine
— functions related to the hardware- Reset related functions
- Interrupt related functions
- Power related functions
- Miscellaneous functions
- Constants
- Classes
- class Pin – control I/O pins
- class Signal – control and sense external I/O devices
- class UART – duplex serial communication bus
- class SPI – a Serial Peripheral Interface bus protocol (master side)
- class I2C – a two-wire serial protocol
- class RTC – real time clock
- class Timer – control hardware timers
- class WDT – watchdog timer
micropython
– access and control MicroPython internalsnetwork
— network configurationuctypes
– access binary data in a structured way
- Python standard libraries and micro-libraries
- MicroPython Differences from CPython
- MicroPython license information
- MicroPython documentation contents
- MicroPython libraries
- Python standard libraries and micro-libraries
- Builtin Functions
array
– arrays of numeric datacmath
– mathematical functions for complex numbersgc
– control the garbage collectormath
– mathematical functionsselect
– wait for events on a set of streamssys
– system specific functionsubinascii
– binary/ASCII conversionsucollections
– collection and container typesuhashlib
– hashing algorithmsuheapq
– heap queue algorithmuio
– input/output streamsujson
– JSON encoding and decodinguos
– basic “operating system” servicesure
– regular expressionsusocket
– socket moduleustruct
– pack and unpack primitive data typesutime
– time related functionsuzlib
– zlib decompression
- MicroPython-specific libraries
btree
– simple BTree databaseframebuf
— Frame buffer manipulationmachine
— functions related to the hardware- Reset related functions
- Interrupt related functions
- Power related functions
- Miscellaneous functions
- Constants
- Classes
- class Pin – control I/O pins
- class Signal – control and sense external I/O devices
- class UART – duplex serial communication bus
- class SPI – a Serial Peripheral Interface bus protocol (master side)
- class I2C – a two-wire serial protocol
- class RTC – real time clock
- class Timer – control hardware timers
- class WDT – watchdog timer
micropython
– access and control MicroPython internalsnetwork
— network configurationuctypes
– access binary data in a structured way
- Python standard libraries and micro-libraries
- The MicroPython language
- The MicroPython Interactive Interpreter Mode (aka REPL)
- Writing interrupt handlers
- Maximising Python Speed
- MicroPython on Microcontrollers
- MicroPython Differences from CPython
- MicroPython license information
- MicroPython libraries