MicroPython documentation and references¶
- Python API for Codey Rocky
- Python API for Codey
- Python API list for Codey
led— Onboard RGB LEDdisplay— Face Panelspeaker— Onboard Speakersound_sensor— Onboard Sound Sensorlight_sensor— Onboard Light Sensorpotentiometer— Onboard Potentiometerbutton_a— Onboard Button Abutton_b— Onboard Button Bbutton_c— Onboard Button Cmotion_sensor— Onboard Motion Sensorir— Onboard Infrared Transceiverwifi— Onboard Wifibattery— Built-in Lithium Batterycodey_timer— Countercodey_broadcast— Broadcast Modulecodey_external_module_detect— External Module access Detectioncodey_script_control— Script/thread Controlevent— Event Processing Unit
- Python API list for Codey
- Python API for Rocky
- Python API for third-party library
- Python API for extension Neuron modules
- Python API List for Neuron Extension Modules
dc_motor_driver— Dual DC Motor Driverservo_driver— Dual Servo Driverled_strip— LED Strip Driverled_panel— RGB LED Panelbuzzer— Buzzerbutton— Buttonfunny_touch— Funny Touchultrasonic_sensor— Ultrasonic Sensorgyro_sensor— Gyro Sensorpir_sensor— PIR Sensorsoil_moisture— Soil Moisture
- Python API List for Neuron Extension Modules
- Python API for Codey
- Codey&Rocky’s example tutorial
- Python API for Haloboard
- Python API for Haloboard
- The python interface class for the haloboard
- Broadcast’s interface list
- Driver’s interface list
button— Onboard Buttonclock— Onboard Baseboard Clockled— Onboard RGB LEDmotion_sensor— Onboard Motion Sensortouchpad0— Touch Button0touchpad0— Touch Button1touchpad0— Touch Button2touchpad0— Touch Button3vibration_motor— Vibration Motormicrophone— Onboard Microphonespeaker— Onboard Speaker
- Event’s interface list
- Cloud message interface list
- Pin’s interface list
- Speech recognition interface list
- Timer’s interface list
- Wifi’s interface list
- The python interface class for the haloboard
- Python API for third-party library
- Python API for extension Neuron modules
- Python API List for Neuron Extension Modules
dc_motor_driver— Dual DC Motor Driverservo_driver— Dual Servo Driverled_strip— LED Strip Driverled_panel— RGB LED Panelbuzzer— Buzzerbutton— Buttonfunny_touch— Funny Touchultrasonic_sensor— Ultrasonic Sensorgyro_sensor— Gyro Sensorpir_sensor— PIR Sensorsoil_moisture— Soil Moisture
- Python API List for Neuron Extension Modules
- Python API for Haloboard
- Haloboard’s example tutorial
- MicroPython libraries
- Python standard libraries and micro-libraries
- Builtin functions and exceptions
array– arrays of numeric datacmath– mathematical functions for complex numbersgc– control the garbage collectormath– mathematical functionssys– system specific functionsubinascii– binary/ASCII conversionsucollections– collection and container typesuerrno– system error codesuhashlib– hashing algorithmsuheapq– heap queue algorithmuio– input/output streamsujson– JSON encoding and decodinguos– basic “operating system” servicesure– simple regular expressionsuselect– wait for events on a set of streamsusocket– socket moduleussl– SSL/TLS moduleustruct– pack and unpack primitive data typesutime– time related functionsuzlib– zlib decompression_thread– multithreading support
- 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 ADC – analog to digital conversion
- class ADCChannel — read analog values from internal or external sources
- 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
- class SD – secure digital memory card
micropython– access and control MicroPython internalsucryptolib– cryptographic ciphersuctypes– access binary data in a structured way
- Python standard libraries and micro-libraries
- The MicroPython language
- Glossary
- The MicroPython Interactive Interpreter Mode (aka REPL)
- Writing interrupt handlers
- Maximising MicroPython Speed
- MicroPython on Microcontrollers
- Distribution packages, package management, and deploying applications
- Inline Assembler for Thumb2 architectures
- Document conventions
- Instruction Categories
- 1. Register move instructions
- 2. Load register from memory
- 3. Store register to memory
- 4. Logical & Bitwise instructions
- 5. Arithmetic instructions
- 6. Comparison instructions
- 7. Branch instructions
- 8. Stack push and pop
- 9. Miscellaneous instructions
- 10. Floating Point instructions
- 11. Assembler Directives
- Usage examples
- References
- MicroPython differences from CPython
- Syntax
- Core Language
- Builtin Types
- Exception
- bytearray
- bytes
- float
- int
- list
- str
- Start/end indices such as str.endswith(s, start) not implemented
- Attributes/subscr not implemented
- str(…) with keywords not implemented
- str.ljust() and str.rjust() not implemented
- None as first argument for rsplit such as str.rsplit(None, n) not implemented
- Instance of a subclass of str cannot be compared for equality with an instance of a str
- Subscript with step != 1 is not yet implemented
- tuple
- Modules
- MicroPython license information