int fsrPin = 1; void setup() { Serial.begin( 9600 ); } void loop() { Serial.println( analogRead( fsrPin ) ); delay( 100 ); } |
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( 100 ); // Delay a bit. } |
![]() | ©2003-2020 McGill University. All Rights Reserved. Maintained by Gary P. Scavone. |