Guest User

Untitled

a guest
Jun 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ser=serial.Serial(port='/dev/ttyS0', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_WO, bytesize=serial.EIGHTBITS)
  2.  
  3. while True:
  4. x = ser.readline()
  5. print(x)
  6.  
  7. void setup()
  8. {
  9. Serial3.begin(9600);
  10. }
  11.  
  12. void loop()
  13. {
  14. Serial3.println("hello raspberry");
  15. }
Add Comment
Please, Sign In to add comment