Guest User

Untitled

a guest
Oct 1st, 2018
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. long SequenceNum;
  2.  
  3. void setup() {
  4. Serial.begin(9600);
  5. Serial1.begin(57600);
  6. SequenceNum = 1;
  7. }
  8.  
  9. void loop() {
  10.  
  11.  
  12. Serial.print("Sending Command: M408 S2 R");
  13. Serial.println(SequenceNum, DEC);
  14. Serial1.print("/M408 S2 R");
  15. Serial1.print(SequenceNum, DEC);
  16. Serial.print("Received: ");
  17. Serial.println(Serial1.read());
  18. delay(500);
  19. SequenceNum = SequenceNum + 1;
  20.  
  21. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×