[PD-cvs] externals/hardware/arduino/examples/Pd_Input Pd_Input.pde, NONE, 1.1
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Sun Mar 5 07:48:04 CET 2006
Update of /cvsroot/pure-data/externals/hardware/arduino/examples/Pd_Input
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20865/Pd_Input
Added Files:
Pd_Input.pde
Log Message:
some example patches for the existing puredata firmwares, and the start of firmware for getting all inputs into Pd as fast as possible. Some clean-up needed before a real release
--- NEW FILE: Pd_Input.pde ---
/* Pd_Input
* ------------------
*
* This program reads all of the Analog inputs
* and sends the data to the computer as fast as
* possible. It was designed to work with the Pd
* patch of the same name in:
* Help -> Browser -> examples -> hardware
*
* (cleft) 2006 Hans-Christoph Steiner
* @author: Hans-Christoph Steiner
* @date: 2006-03-04
* @location: Polytechnic University, Brooklyn, New York, USA
*/
/*
* CAUTION!! Do not turn on the Serial Monitor, it could freeze
* your computer with this firmware running! It outputs data
* without a delay() so its very fast.
*/
int potPin = 0;
void setup() {
beginSerial(19200);
}
void loop() {
printByte(potPin + 65); // add 65 to get ASCII chars starting with A
printInteger(analogRead(potPin));
potPin = potPin + 1;
if (potPin > 5)
potPin = 0;
}
More information about the Pd-cvs
mailing list