Advertisement
uas_arduino

Serial Analog Read

Mar 8th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement