This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bluetooth, time | |
import Adafruit_BBIO.GPIO as GPIO | |
search_time = 10 | |
led_pin = "P8_7" | |
# You can hardcode the desired device ID here as a string to skip the discovery stage | |
addr = None | |
print("Welcome to the Bluetooth Detection Demo! \nMake sure your desired Bluetooth-capable device is turned on and discoverable.") |