MicroPython documentation and references¶
- 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
- Python Example Scripts
alarmIncrease the measurement and transmission rates when the system is in alarmAlpha_displaydemonstrates writting data to an Alpha Display module over RS232auto_sampler_eight_triggersAutomated sampler program triggers on multiple varied conditions.auto_sampler_volumeTriggers sampler based on volumebin6_fourdemonstrates how to create 4 byte pseudobinary encoded numberscontroldemonstrates triggering a digital output based on a tipping bucket leveldaylightdemonstrates accumulating minutes of daylightdgademonstrates formatting a message in DGA formatevapo_transpirationComputes evapotranspirationevent_based_loggingEvent based logging for a measurementfileDemonstrates file operationsgeneral_purposeprovides functions to access General Purpose Variables (gp)gps_trackerGPS Position Logging Programhttp_post_filedemonstrates TCP/IP TXMODE via HTTP POST of an imagehttp_post_messagedemonstrates TCP/IP TXMODE via HTTP POST of telemetry datainsatINSAT custom formatting utility routineslog_simpledemonstrates log accesslog_task_triggerdemonstrates custom logging based on an event triggerlog_txformatdemonstrates custom tx formatting from the logmeas_daily_rocRain during the last 24 hours, Rate of change measurementsmeas_rain_slidingComputes rainfall during the last 60 and last 90 minutesmeas_simpledemonstrates some simple custom measurementsmedianComputes a median value from many samplesmoving_sumComputes a moving sum value from previous samlesmqtt_raw_transmission_demodemonstrates TCP/IP TXMODE by publishing a MQTT messagenever_logHow to prevent Sat/XLink from logging a measurementNFDRS_TX_Formatdemonstrates SHEF reformatted to NRDRS transmission format using string comprehensionparitydemonstrates adding parity bits to a stringrating_tabledemonstrates rating table to interpolate flow based on stagerating_table_gpdemonstrates an interpolation table using general purpose variablesRS232_demodemonstrates writing to the RS232 portsdi12Module provides SDI-12 examplessetupprovides functions to read and write the setupsmssend an SMS (text) message to a phone numberSonTek_RS232demonstrates reading the SonTek RS232 sensortxformat_group_tabletelemetry data is formatted in group (aka table) modetxformat_simpledemonstrates some simple TX format scripts
- LinkComm Software, Manual, and Python Example Code
- 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 and MicroPython Resources
- MicroPython license information