adc.ino 326 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#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);
}