Language \ Environment \ Libraries \ Comparison  
   
Back  
   
  If you see any errors or have any comments, let us know.  
Name  

Gainer

   
Examples  
// Example  make the gainer
 
import processing.gainer.*;

//The gainer
Gainer gainer;


//make the gainer
 gainer = new Gainer(this);
//turn on LED
 gainer.turnOnLED();
 
 

Description   Class for accessing the gainer
   
Methods  
configuration()
  It makes configuration ports.

reboot()
  Software reset. User should not use this.

turnOnLED()
  Turn on LED on board.

turnOffLED()
  Turn off LED on board.

buttonPressed
  Value of statement of button.

gainerButtonEvent()
  Callback function for button

analogInput[]
  Values of analog input.

digitalInput[]
  Values of digital Input

peekDigitalInput()
  It can bringing values to digitalIn[] at one time.

beginDigitalInput()
  It makes begin to bringing values.

endDigitalInput()
  It makes stop to bringing values.

peekAnalogInput()
  It can bringing values to analogIn[] at one time.

beginAnalogInput()
  It makes begin to bringing values to analogIn[].

endAnalogInput()
  It makes stop to bringing values.

digitalOutput()
  It makes 0V or +5V on digital output port.

setHigh()
  It makes +5V on digital output port.

setLow()
  It makes 0V on digital output port.

analogOutput()
  It makes 0V to +5V on analog output port

   
   
Constructors  
Gainer(parent)
Gainer(parent, name)
Gainer(parent, name, mode)
Gainer(parent, name, mode, verbose)
   
Parameters  
parent   PApplet: typically use "this"

name   String: name of the port (COM1 is the default)

mode   int: MODE1 or MODE2 or MODE3 or MODE4 ,MODE1 is the default

verbose   boolean: verbose output

   
Usage   Application
   
 
 






   
 
Updated: ??
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info