uas_arduino

Serial Analog Read

Mar 8th, 2013
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup(){
  2. Serial.begin(9600);
  3. }
  4.  
  5. void loop(){
  6. if(Serial.available() > 0){
  7. Serial.read();
  8. Serial.println(analogRead(0));
  9. }
  10. }
RAW Paste Data