int count = 0;
void setup()
{
Serial.begin( 115200 );
}
void loop()
{
Serial.println( count );
count += 1;
if ( count > 15 ) count = 0;
delay( 500 );
}
|
void setup()
{
Serial.begin( 115200 );
}
void loop()
{
// Read from two analog pins and put a space between values.
for ( int i=2; i<4; i++) {
Serial.print( analogRead(i) );
Serial.print(' ');
}
Serial.println();
delay( 300 ); // Delay a bit.
}
|
| ©2003-2026 McGill University. All Rights Reserved. Maintained by Gary P. Scavone. |