Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#define ANALOG_IN 0

void setup() {
Serial.begin(9600);
//Serial.begin(115200);
}

void loop() {
int val = analogRead(ANALOG_IN);
Serial.write( 0xff );
Serial.write( (val >> 8) & 0xff );
Serial.write( val & 0xff );
}

You might also like