Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeSasaki committed Sep 19, 2019
1 parent fbcc798 commit 8c9f4df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions raspberry_pi/bb_UART/bb_uart_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
pi.bb_serial_read_close(17)
status = pi.bb_serial_read_open(17, 9600)
while True:
count = 1
text = ""
count, data = pi.bb_serial_read(17)
while count:
count, data = pi.bb_serial_read(17)
if count:
text += data
time.sleep(0.01)
print(text)
print(data)

finally:
pi.bb_serial_read_close(17)

0 comments on commit 8c9f4df

Please sign in to comment.