This is an old revision of the document!
Configure a high-speed counter channel for pulse counting using PWM edge-count mode.
from cubloc import SetCount SetCount(channel: int, edge: str | int = "rising")
channel number (0 to 4).Edge mode. Use “rising” (default), “falling”, or int codes 0 and 1 respectively.from cubloc import SetCount # Example usage SetCount(0, "rising")