Advertisement
makispaiktis

Arduino - Serial Communication

Apr 16th, 2019 (edited)
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   // put your setup code here, to run once:
  3.  
  4. }
  5.  
  6. void loop() {
  7.   // put your main code here, to run repeatedly:
  8.   char c;
  9.   if (Serial.available()) {
  10.     c = Serial.read();  
  11.  
  12.     if(c == '\n') {
  13.       Serial.println("Change Line");
  14.     }
  15.     else {
  16.        
  17.     }
  18.   }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement