pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class PinScript

    A line for running with nothing plugged in: it answers the reads it was given, in order, and records every level it is driven to. It is what the examples and tests put under a Switch or a Contact, and the one thing a real node replaces with its board's pin library. It behaves as pamoja_hal::script::PinScript does in Rust: it starts released, high, and once its reads run out a read answers the level it was last driven to.

    Implements

    Index
    • get remaining(): number

      How many scripted reads are left.

      Returns number