MicroPython documentation contents¶
- MicroPython libraries
- Python standard libraries and micro-libraries
_thread
— Low-level threading APIarray
– arrays of numeric databuiltins
– builtin functions, constants, exceptions, and decoratorscmath
– 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 algorithmuheapq
– heap queue algorithmcommsocket
– commsocket moduleuio
– input/output streamsujson
– JSON encoding and decodinguos
– basic “operating system” servicesurandom
– Random Number Generationure
– regular expressionsustruct
– pack and unpack primitive data typesutime
– time related functions
- MicroPython-specific libraries
- Libraries specific to Satlink 3 and XLink 500
- Python standard libraries and micro-libraries
- The MicroPython language
- Overview of MicroPython Differences from Standard Python
- Code examples of how MicroPython differs from Standard Python with work-arounds
- The MicroPython Interactive Interpreter Mode (aka REPL)
- Maximising Python Speed
- MicroPython on Microcontrollers
- Python Development Environment Setup
- Loading a script and setup into Satlink 3 and XLink 500
- Writing Measurement Scripts
- Writing Transmission Formatting Python Scripts
- Writing Control Applications and Other Script Tasks
- LinkComm Software, Manual, and Python Example Code
- Python and MicroPython Resources
- Python Example Scripts
alarm
Increase the measurement and transmission rates when the system is in alarmAlpha_display
demonstrates writting data to an Alpha Display module over RS232auto_sampler_eight_triggers
Automated sampler program triggers on multiple varied conditions.auto_sampler_volume
Triggers sampler based on volumebin6_four
demonstrates how to create 4 byte pseudobinary encoded numberscontrol
demonstrates triggering a digital output based on a tipping bucket leveldaylight
demonstrates accumulating minutes of daylightdga
demonstrates formatting a message in DGA formatevapo_transpiration
Computes evapotranspirationevent_based_logging
Event based logging for a measurementfile
Demonstrates file operationsgeneral_purpose
provides functions to access General Purpose Variables (gp)gps_tracker
GPS Position Logging Programhttp_post_file
demonstrates TCP/IP TXMODE via HTTP POST of an imagehttp_post_message
demonstrates TCP/IP TXMODE via HTTP POST of telemetry datainsat
INSAT custom formatting utility routineslog_simple
demonstrates log accesslog_task_trigger
demonstrates custom logging based on an event triggerlog_txformat
demonstrates custom tx formatting from the logmeas_daily_roc
Rain during the last 24 hours, Rate of change measurementsmeas_rain_sliding
Computes rainfall during the last 60 and last 90 minutesmeas_simple
demonstrates some simple custom measurementsmedian
Computes a median value from many samplesmoving_sum
Computes a moving sum value from previous samlesmqtt_raw_transmission_demo
demonstrates TCP/IP TXMODE by publishing a MQTT messagenever_log
How to prevent Sat/XLink from logging a measurementNFDRS_TX_Format
demonstrates SHEF reformatted to NRDRS transmission format using string comprehensionparity
demonstrates adding parity bits to a stringrating_table
demonstrates rating table to interpolate flow based on stagerating_table_gp
demonstrates an interpolation table using general purpose variablesRS232_demo
demonstrates writing to the RS232 portsdi12
Module provides SDI-12 examplessetup
provides functions to read and write the setupsms
send an SMS (text) message to a phone numberSonTek_RS232
demonstrates reading the SonTek RS232 sensortxformat_group_table
telemetry data is formatted in group (aka table) modetxformat_simple
demonstrates some simple TX format scripts
- MicroPython license information