import smbus import time bus = smbus.SMBus(1) Buzzer_ADD = 0x1B print("Starting demo now!") curr_value = 1 while True:
time.sleep(1) # Toggle the output every second print("Outputting {}".format(curr_value)) bus.write_byte_data(Buzzer_ADD,0x06,curr_value) curr_value ^= 1