Files
Robotics-at-Home-with-Raspb…/ch-09/1-bluetooth-hello-world/code.py
T
2023-01-18 13:57:13 +00: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())