Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sketch arduino para leitura eixos do acelerometro mma7361
Autor: Marco T. Chella
Em: 28/09/2016
Para saber mais:
void setup() {
// initialize serial communication at 9600 bits per second:
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
String vx = String (analogRead(A0));
String vy = String (analogRead(A1));
String vz = String (analogRead(A2));
Serial.println(vx + "," + vy + "," + vz);
delay(10); // delay in between reads for stability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment