Project: Box2D_friction_mod      WheelConstraint.h      box2d_friction_joint.patch      b2FrictionJoint.h      TopDownCar.h      b2FrictionJoint.cpp      TestEntries.cpp      python_friction_joint.patch     

Project: jvfeatures

jvtypes.h      jvtypes.cpp      jvfeatures.h      chessSeg.cpp      jvtest.cpp      jvfeatures.cpp     

Project: Other


Project: Infinite HMM Tutorial

HMMProblem.m      HMM.m      README.txt      HDP.m      HDP_HMM.m      run.m      ConditionalProbabilityTable.m     

Project: Arduino_Code

arduino-serial.c      oscilloscope.pde      ranger_test.pde      accelerometer_test.pde      pwm_manual.pde      servo_test.pde      motordriver.pde      ranger_plane_sweep.pde      helicopter_controller.pde      clodbuster_controller.pde     

Project: RRT

BidirectionalRRT.cpp      RRT.tgz      AbstractRRT.cpp      RRT.h      RRT.cpp      rrt_test.cpp     

Project: ArduCom     

Project: Dirichlet Process Mixture Tutorial

EM_GM.m      DP_Demo.m      DirichletProcess.m      DPMM.m      gaussian_EM.m     

Project: support

Protector.php      geshi.php     

Project: Cogent

CodePane.php      Cogent.php      NotesPane.php      PubsTable.php      PicsPane.php     
Click here to download "resources/code/Arduino_Code/oscilloscope/oscilloscope.pde"


#include <stdio.h>

#define PIN0 = 0;
#define PIN1 = 1;
#define PIN2 = 2;
#define PIN3 = 3;
#define PIN4 = 4;
#define PIN5 = 5;
int val0;
int val1;
int val2;
int val3;
int val4;
int val5;
char buf[32];

void setup() {
  // initialize serial port
  analogReference(EXTERNAL); // Expects ground for the system on the aref pin
  /*                           * don't forget to pass through 5K resistor- in case
                               * analogReference settings are wrong we don't want to
                               * damage the microcontroller


void loop() {
  // read the value from the sensor:
//  val0 = analogRead(PIN0);
  val1 = analogRead(PIN1);
  val2 = analogRead(PIN2);
  val3 = analogRead(PIN3);
//  val4 = analogRead(PIN4);
//  val5 = analogRead(PIN5);


  sprintf(buf,"%d %d %d",val2, val3, val4); // 2:4
  //sprintf(buf,"%d %d %d %d",val2, val3, val4, val5); // 2:5
  //sprintf(buf,"%d %d %d %d %d %d",val0, val1, val2, val3, val4, val5); // all 6


About me

Pic of me