Table of Contents

Input

Configure a pin as digital input.

Syntax

from cubloc import Input
 
Input(pin: int, pull: int = -1)

Parameters

Example

from cubloc import Input
 
# Example usage
Input(0, -1)