Differences between revisions 3 and 4
Revision 3 as of 2008-10-20 10:13:51
Size: 717
Editor: dyn177231
Comment:
Revision 4 as of 2008-10-20 10:15:27
Size: 828
Editor: dyn177231
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

=== AdMoVeo ===

=== Actuators ===

==== Motors ====

=== Sensors ===

=== Input event handling ===

  • /!\ This page is under construction. Before it is completed, Please refer to the javadoc for the time being.

1. AdMoVeo in Processing

1.1. AdMoVeo

1.2. Actuators

1.2.1. Motors

1.3. Sensors

1.4. Input event handling

1.5. Example

   1 import processing.serial.*;
   2 import nl.tue.id.creapro.admoveo.*;
   3 
   4 AdMoVeo admoveo;
   5 int bgcolor = 255;
   6 
   7 void setup()
   8 {
   9   admoveo = new AdMoVeo(this, "COM11"); 
  10   admoveo.getLeftDistanceSensor().enable();
  11 }
  12 
  13 void draw()
  14 {
  15   background(0,0,bgcolor);
  16 }
  17 
  18 void inputAvailable(Sensor sensor, int oldValue, int newValue){
  19         if(sensor == admoveo.getLeftDistanceSensor()){
  20         bgcolor = newValue/4;
  21         admoveo.getBlueLed().setPower(bgcolor);
  22     }
  23 }

CreaPro: AdMoVeoInProcessing (last edited 2008-11-24 12:17:39 by JunHu)