ioio.lib.impl
Class DigitalOutputImpl

java.lang.Object
  extended by ioio.lib.impl.AbstractResource
      extended by ioio.lib.impl.AbstractPin
          extended by ioio.lib.impl.DigitalOutputImpl
All Implemented Interfaces:
Closeable, DigitalOutput

public class DigitalOutputImpl
extends AbstractPin
implements DigitalOutput


Nested Class Summary
 
Nested classes/interfaces inherited from interface ioio.lib.api.DigitalOutput
DigitalOutput.Spec
 
Method Summary
 void write(boolean val)
          Set the output of the pin.
 
Methods inherited from class ioio.lib.impl.AbstractPin
close
 
Methods inherited from class ioio.lib.impl.AbstractResource
disconnected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ioio.lib.api.Closeable
close
 

Method Detail

write

public void write(boolean val)
           throws ConnectionLostException
Description copied from interface: DigitalOutput
Set the output of the pin.

Specified by:
write in interface DigitalOutput
Parameters:
val - The output. true is logical "HIGH", false is logical "LOW".
Throws:
ConnectionLostException - The connection with the IOIO has been lost.