Skip to content

Simulates Standard Arduino Mouse.h and Keyboard.h API BLE connections using nRF52840

License

LGPL-2.1, MIT licenses found

Licenses found

LGPL-2.1
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

Accessible-AAC/BLE52_Mouse_and_Keyboard

 
 

Repository files navigation

BLE52 Mouse and Keyboard library

This library provides an Arduino Mouse.h and Keyboard.h compatible API for using BLE connections on an nRF52840.

Copy all files to your "Arduino/libraries". See the "examples" folder for sample sketches.

This module simulates the standard Arduino "Mouse.h" API and Arduino "Keyboard.h" API for use with the BLE HID connections on the nRF52840. Instead of doing

#include <HID.h>
#include <Mouse.h>
#include <Keyboard.h>

Simply do

#include <TinyUSB_Mouse_and_Keyboard.h>

In addition to the methods available in the standard Arduino Mouse.h and Keyboard.h you can also check to see if the Bluetooth connection has been established using…

bool Mouse.isConnected()

or

bool Keyboard.isConnected(void)

Also be sure to check out the companion library "TinyUSB_Mouse_and_Keyboard" which provides a similar interface for using TinyUSB connections.

About

Simulates Standard Arduino Mouse.h and Keyboard.h API BLE connections using nRF52840

Resources

License

LGPL-2.1, MIT licenses found

Licenses found

LGPL-2.1
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%