Files
Robotics-at-Home-with-Raspb…/ch-9/1-bluetooth-hello-world/code.py
T
Danny Staple 5ed99330f3 chapter 9 code
2022-06-30 22:43:20 +01:00

9 lines
189 B
Python

import board
import busio
uart = busio.UART(board.GP12, board.GP13, baudrate=9600)
while True:
if uart.read(32) is not None:
uart.write("Hello, Bluetooth World!\n".encode())