As you'll see at the end of the Oscilloscope.pde code, there's the Arduino code.
BTW I'd suggest you don't write your email address on websites like this: spambots are crawling the web and you'll start to get tons of spam in your mailbox. I've changed it in your comment to make it spambot-safe.
// The Arduino code.
#define ANALOG_IN 0
void setup() {
Serial.begin(9600);
}
void loop() {
int val = analogRead(ANALOG_IN);
Serial.print( 0xff, BYTE);
Serial.print( (val >> 8) & 0xff, BYTE);
Serial.print( val & 0xff, BYTE);
}
As you'll see at the end of
As you'll see at the end of the Oscilloscope.pde code, there's the Arduino code.
BTW I'd suggest you don't write your email address on websites like this: spambots are crawling the web and you'll start to get tons of spam in your mailbox. I've changed it in your comment to make it spambot-safe.
// The Arduino code. #define ANALOG_IN 0 void setup() { Serial.begin(9600); } void loop() { int val = analogRead(ANALOG_IN); Serial.print( 0xff, BYTE); Serial.print( (val >> 8) & 0xff, BYTE); Serial.print( val & 0xff, BYTE); }