Code Monkey home page Code Monkey logo

bplib's Introduction

BPLib - Bluetooth SPP/HID Library

This library simplifies the communication protocol between the RN-42 (HID enabled) device and the atmega32u4. Some functions won't work on for example (Arduino(R) Leonardo) because there is some hardware mods between the module and the atmega32u4. One of these functions/statements is the "connected()" statement in the library.

The library is written with arduino statements (like Serial.begin(), etc) inorder to make the code very simple/understandable/editable to a Arduino IDE newcomer.

The library isn't complete, todo list:

  • Add, authorization mode: Toggle between an Open/Pin Locked connection.
  • Add, more keyboard scan codes
  • Add, software connection check (to support Arduino Uno/Leonardo/Mega)

Working with following boards:

  • BlueNar One
  • Arduino(R) Leonardo (One function doesn't work, everything else AOK)

The library will work with the following BT protocols:

  • SPP (Bluetooth Serial)
  • HID (Bluetooth Human Interface Device)
    • Keyboard
    • Mouse
    • Combo (Keyboard + Mouse)
    • Joystick
    • Gamepad

For example code, see the examples directory

bplib's People

Contributors

baselsw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bplib's Issues

Check connection state

Hey Basel,
many thanks for this library. How does your software connection check work?
What is connected to your pin 7?
I’m trying to realize a Bluetooth Presence Detection. I want to trigger events when a smartphone automatically connects to the BlueSMiRF HID. Using the HID profile was the only possibility to enable the automatically connection of a iPhone. Now I just need to check if a device is connected to the module. Maybe you know a way to realize this with my Arduino UNO? Many thanks in advance for your help.
Regards André

All the button codes act like the D-pad

Hi, first i wanna thank you for making this library, it help me a lot. I'm trying to make a gamepad using your library with the gamepad profile but i'm facing some troubles.My problem is that all the button codes act like D-PAD. Any idea on how to resolve this?

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.