#!/usr/bin/env python

# File: ch3ex3.py
# Beep the robot's buzzer a few times

import barobo
import time

ctx = barobo.BaroboCtx()
ctx.autoConnect()
linkbot = ctx.getLinkbot()

for i in range(5):
    print(i)
    linkbot.setBuzzerFrequency(440)
    linkbot.setLEDColor(0, 255, 0)
    time.sleep(1)
    linkbot.setBuzzerFrequency(0)
    linkbot.setLEDColor(0, 0, 0)
    time.sleep(1)

d7084fbd11e41c66d369f795a4c955effc383b40
<mask token>

<mask token>
ctx.autoConnect()
<mask token>
for i in range(5):
    print(i)
    linkbot.setBuzzerFrequency(440)
    linkbot.setLEDColor(0, 255, 0)
    time.sleep(1)
    linkbot.setBuzzerFrequency(0)
    linkbot.setLEDColor(0, 0, 0)
    time.sleep(1)

<mask token>
ctx = barobo.BaroboCtx()
ctx.autoConnect()
linkbot = ctx.getLinkbot()
for i in range(5):
    print(i)
    linkbot.setBuzzerFrequency(440)
    linkbot.setLEDColor(0, 255, 0)
    time.sleep(1)
    linkbot.setBuzzerFrequency(0)
    linkbot.setLEDColor(0, 0, 0)
    time.sleep(1)

import barobo
import time
ctx = barobo.BaroboCtx()
ctx.autoConnect()
linkbot = ctx.getLinkbot()
for i in range(5):
    print(i)
    linkbot.setBuzzerFrequency(440)
    linkbot.setLEDColor(0, 255, 0)
    time.sleep(1)
    linkbot.setBuzzerFrequency(0)
    linkbot.setLEDColor(0, 0, 0)
    time.sleep(1)

#!/usr/bin/env python

# File: ch3ex3.py
# Beep the robot's buzzer a few times

import barobo
import time

ctx = barobo.BaroboCtx()
ctx.autoConnect()
linkbot = ctx.getLinkbot()

for i in range(5):
    print(i)
    linkbot.setBuzzerFrequency(440)
    linkbot.setLEDColor(0, 255, 0)
    time.sleep(1)
    linkbot.setBuzzerFrequency(0)
    linkbot.setLEDColor(0, 0, 0)
    time.sleep(1)
