Git Product home page Git Product logo

sphero-rs's Introduction

sphero image

sphero-rs

Rust Implementation of Orbotix Communication API v1.20
[Explore API Docs »][https://docs.gosphero.com/api/Sphero_API_1.20.pdf]

Overview

A complete implementation of the command and control protocol for the Sphero v1.20 API, tailored for the SPRK+ robot. This library is crafted in pure Rust and boasts (TBD) compatibility with no_std environments. Additionally, client-side infrastructure is available to efficiently send and receive packets.

Planned Features

  • Complete Protocol Support: Implements the entire command and control protocol for the Sphero v1.20 API.
  • SPRK+ Support: Tailored specifically for communication with the Sphero SPRK+ robot.
  • Pure Rust: All implementations are in Rust, ensuring memory safety without compromising performance.
  • no_std Compatibility: Suitable for constrained and embedded environments.
  • Client-side Infrastructure: Ready-made tools and utilities to send and receive packets from a connected device.

Example: LED Animation

The example application starts by scanning for Bluetooth devices. It then looks for a device with a name containing "SK-", which identifies the Sphero SPRK+. After finding the device, it establishes a connection, wakes up the Sphero using a specific sequence of writes, and then begins animating the LED.

The animation is achieved by continuously cycling through hues in the HSV color space and converting them to RGB values, which are then sent as commands to the Sphero.

sphero-rs's People

Contributors

ethanjameslew avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.