User Tools

Site Tools

한국어

logicpython:cubloc_api:sys

This is an old revision of the document!


Sys

Return a supported CUBLOC system status value.

Syntax

from cubloc import Sys
 
Sys(address: int)

Parameters

  • address: System status address (0 to 255).

Return Value

Return a supported CUBLOC system status value. Sys(0) returns the most recent actual UART write count. Sys(1) returns the most recent actual UART read count. Sys(2) and Sys(3) return 0 because the vendor docs mark them unused. Sys(4) returns 1 while an EEPROM byte write is in progress, otherwise 0. Sys(5) returns a 10 ms timer that wraps at 65535. Sys(6) returns micropython.stack_use().

Exceptions

Example

from cubloc import Sys
 
# Example usage
result = Sys(1)
print(result)
logicpython/cubloc_api/sys.1775786799.txt.gz · Last modified: by 127.0.0.1