my__funeral

провер очка юарт

Oct 9th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. void setup() {
  2.   // put your setup code here, to run once:
  3.  Serial.begin(4800);
  4.  Serial3.begin(4800);
  5.  
  6. }
  7.  
  8. void loop() {
  9.   // put your main code here, to run repeatedly:
  10.  
  11.  while(Serial.available()>0){
  12.   Serial3.write(Serial.read());
  13.  if (Serial3.available()>0){
  14.   Serial.print(2);
  15.  }}
  16. }
Add Comment
Please, Sign In to add comment