Created
February 14, 2011 14:08
-
-
Save MKo-xx/825916 to your computer and use it in GitHub Desktop.
ADXL335
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int xpin = 0; | |
const int ypin = 1; | |
const int zpin = 2; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.print("BEG"); | |
Serial.print("X"); Serial.print(analogRead(xpin)); | |
Serial.print("Y"); Serial.print(analogRead(ypin)); | |
Serial.print("Z"); Serial.print(analogRead(zpin)); | |
Serial.println(); | |
delay(50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment