Created
September 16, 2017 03:50
-
-
Save patrickgalbraith/9c99f4ed3698d483020a57f3982dfd28 to your computer and use it in GitHub Desktop.
AccelerometerTest2
This file contains hidden or 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 analogPin = A0; | |
const int ledPin = 14; | |
int analogPinVal = 0; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(115200); | |
} | |
void loop() { | |
analogPinVal = analogRead(analogPin); | |
Serial.println(analogPinVal); | |
delay(50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment