def immediate_read(f):
    """A PinBank read mode: read() is called automatically whenever a pin value is read.
    
    Note: this mode is not compatible with interrupts. A warning will
    be issued if interrupts are enabled on a PinBank that is in
    immediate_read mode.
    """
    f()
