Pin

final case
class Pin(index: Ex[Int]) extends Pin

A pin on the Raspberry Pi GPIO.

Value Params
index

the zero-based index on the GPIO. This is clipped to the valid range (0-31). This uses the Wiring-Pi scheme, so index zero is physical pin 11 or pin number 17 in the BCM scheme. On the Pi 3B and 4B, there are effectively 21 GPIO pins, numbered 0 to 20.

Companion
object
trait Serializable
trait Pin
trait Ex[Pin]
trait Flow
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Types

type Repr[T <: Txn[T]] = IExpr[T, Pin]

Value members

Concrete methods

override
def productPrefix: String
Definition Classes
Product

Inherited methods

final
def expand[T <: Txn[LazyRef(...)]](implicit ctx: Context[T], tx: T): Repr[T]
Inherited from
Lazy
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Inherited fields

@transient
final protected
val ref: Object
Inherited from
Lazy