Coder Social home page Coder Social logo

ble_hid's Introduction

Human Interface Device over Bluetooth Low Energy

Human Interface Device (HID) is a standard that defines the format used to communicate human inputs to a computer. It was originally created for USB keyboards, mice, joysticks, digitizers, audio controllers and so on.

You can use the HID Over GATT Profile (HOGP) to send HID information over Bluetooth Low Energy, using the same data format as USB HID.

Warning: this is not the same as the HID profile used on Classic Bluetooth.

Content

This repository contains the HID Service implementation, example code, and various documentation.

Code

  • BLE_HID/HIDServiceBase.*: the HID Service implementation; requires BLE_API.
  • BLE_HID/KeyboardService.h: an example use of HIDServiceBase, which sends Keycode reports.
  • BLE_HID/MouseService.h: a service that sends mouse events: linear speed along X/Y axis, scroll speed and clicks.
  • BLE_HID/JoystickService.h: a service that sends joystick events: moves along X/Y/Z axis, rotation around X, and buttons.
  • examples/keyboard_stream.cpp: an example use of KeyboardService, which sends strings through a series of HID reports.
  • examples/mouse_scroll.cpp: an example use of MouseService, which sends scroll reports.

Documentation

  • doc/HID: introduction to the USB HID specification, and to the parts that are reused in BLE.
  • doc/HIDService: description of the BLE HID service, and how to use this implementation.

ble_hid's People

Contributors

iriark01 avatar jpbrucker 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.