Commit 641537e0 authored by Erik Strand's avatar Erik Strand

Add a basic sketch that uses analogRead

parent c9fed0f9
#define LED_GREEN 23
#define SENSE_LINE_0 2
int value;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(LED_GREEN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
value = analogRead(SENSE_LINE_0);
Serial.println(value);
delay(1000);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment