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

analogOutput()

   
Examples  
// Example   output analog port 
import processing.gainer.*;

Gainer gainer;
void setup(){
  size(255,255);
  gainer = new Gainer(this);
}

void draw(){
  background(0);

  if(mousePressed){
    gainer.analogOutput(0,mouseY);
    gainer.analogOutput(1,mouseY);
   }else{
    int values[] = {mouseX,mouseY,mouseX,mouseY};
    gainer.analogOutput(values);
   
   }
   
}


 

Description   It makes 0V to +5V on analog output port. command "A*" "a*"
   
Syntax  
gainer.analogOutput(port,value)
gainer.analogOutput(values)
   
Parameters  
gainer   any variable of type Gainer

port   int: output analog port

value   byte: value of the analog output ports.(0 to 255)

values   byte[]: values of the analog output ports.(0 to 255)

   
Returns   void
   
Usage   Application
   
 
 






   
 
Updated:??
 
 








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