Skip to content
/ swalle Public

Python library created for driving Swalle bluetooth robotic ball

License

Notifications You must be signed in to change notification settings

MyrikLD/swalle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

This python library created for driving Swalle bluetooth robotic ball

Requirements

Go through the setup for bluez and bluepy, and run the bluepy test program to make sure it works. (This step can be a bit of a pain). Make sure the bluepy files are somewhere python can see.

Example

ball = Ball(name='SW21T025766')

ball.white()
time.sleep(1)
ball.red()
time.sleep(1)
ball.green()
time.sleep(1)
ball.blue()
time.sleep(1)

ball.white()
ball.lights()
time.sleep(1)

ball.forward()
time.sleep(1)
ball.left()
time.sleep(1)
ball.right()
time.sleep(1)
ball.back()
time.sleep(1)

About

Python library created for driving Swalle bluetooth robotic ball

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages