Guest User

Untitled

a guest
Jun 25th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #define ANALOG_IN 0
  2.  
  3. void setup() {
  4. Serial.begin(9600);
  5. //Serial.begin(115200);
  6. }
  7.  
  8. void loop() {
  9. int val = analogRead(ANALOG_IN);
  10. Serial.write( 0xff );
  11. Serial.write( (val >> 8) & 0xff );
  12. Serial.write( val & 0xff );
  13. }
Add Comment
Please, Sign In to add comment