|
VEX IQ Python API
|
PyMite's system module, sys. More...
Functions | |
| def | exit (val) |
| Terminate the program, returning an error code. More... | |
| def | gc () |
| Runs the Garbage Collector. More... | |
| def | getb () |
| Gets a byte from the platform's default I/O Returns the byte in the LSB of the returned integer. More... | |
| def | heap () |
| Returns a tuple containing the (total, free) heap size. More... | |
| def | putb (b) |
| Sends the LSB of the integer out the platform's default I/O. More... | |
| def | run_in_thread (f) |
| Runs the given function in a thread sharing the current global namespace. More... | |
| def | thread_id () |
| Returns the id of the current thread. More... | |
| def | clock () |
| Get the number of seconds since system startup. More... | |
| def | sleep (seconds) |
| def | wait_for (func, value=True, timeout=None, check_period=0) |
Variables | |
| int | maxint = 0x7FFFFFFF |
PyMite's system module, sys.
import sys
| def sys.exit | ( | val | ) |
Terminate the program, returning an error code.
| def sys.gc | ( | ) |
Runs the Garbage Collector.
| def sys.getb | ( | ) |
Gets a byte from the platform's default I/O Returns the byte in the LSB of the returned integer.
| def sys.heap | ( | ) |
Returns a tuple containing the (total, free) heap size.
If flash heap is enabled, adds the (total, free) flash heap size.
| def sys.putb | ( | b | ) |
Sends the LSB of the integer out the platform's default I/O.
| def sys.run_in_thread | ( | f | ) |
Runs the given function in a thread sharing the current global namespace.
| def sys.thread_id | ( | ) |
Returns the id of the current thread.
| def sys.clock | ( | ) |
Get the number of seconds since system startup.
| def sys.sleep | ( | seconds | ) |
Pause the current thread execution for the number of seconds
| def sys.wait_for | ( | func, | |
value = True, |
|||
timeout = None, |
|||
check_period = 0 |
|||
| ) |
Wait until a function returns a value, returns True when reached, False on timeout. @param func: function to run until it returns the value. @param value: return value to wait for. Default True. @param timeout: timeout in seconds. If reached returns False. Default None (no timeout). @param check_period: time to wait between checks, in seconds. Default 0 (no wait).
| int sys.maxint = 0x7FFFFFFF |
1.8.15