bluefruit.h: No such file or directory

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
CliffordAgius
 
Posts: 11
Joined: Thu Jan 28, 2016 5:57 am

bluefruit.h: No such file or directory

Post by CliffordAgius »

Hi All,

I am playing around with the Example in the BLE52_Mouse_and_Keyboard repo

https://github.com/cyborg5/BLE52_Mouse_and_Keyboard

which is linked from this learn page:

https://learn.adafruit.com/mouse-and-ke ... e/overview

And when I try and compile any of the examples I am getting the error: bluefruit.h: No such file or directory

I have looked all over but can't find this file and I am hoping someone can help as I am going nuts over here for what I am clearly doing something wrong.

User avatar
dastels
 
Posts: 15702
Joined: Tue Oct 20, 2015 3:22 pm

Re: bluefruit.h: No such file or directory

Post by dastels »

Can you compile/run other bluetooth demos?

Is the appropriate board support and libraries for your board installed? Also, what board are you using?

Dave

User avatar
CliffordAgius
 
Posts: 11
Joined: Thu Jan 28, 2016 5:57 am

Re: bluefruit.h: No such file or directory

Post by CliffordAgius »

I am using an Adafruit Feather M0 Bluefruit or the Feather 32u4 Bluefruit and I am trying to use one of the demo's to send Mouse and Keyboard commands, I have tried the TinyUSB samples from here which show the error of not finding header file.

https://learn.adafruit.com/mouse-and-ke ... e/overview

I have tried the sample from here:

https://learn.adafruit.com/adafruit-fea ... e/overview

Which links through to a different library which does compile and install and seems to run ok but doesn't move the mouse with the AT commands at all but does report an 'OK' as this Monitor shows.

Adafruit Bluefruit HID Mouse Example
---------------------------------------
Initialising the Bluefruit LE module: OK!
ATE=0

<- OK
Requesting Bluefruit info:
----------------
BLESPIFRIEND
nRF51822 QFACA00
1D5F85A6142D0D08
0.6.7
0.6.7
Sep 17 2015
S110 8.0.0, 0.2
----------------
ATI=4
0.6.7

<- OK
Enable HID Service (including Mouse):
AT+BleHIDEn=On

<- OK
Performing a SW reset (service changes require a reset):
ATZ

<- OK

Go to your phone's Bluetooth settings to pair your device
then open an application that accepts mouse input

The example will try to draw a rectangle using the left mouse button with your input
Parameters are a pair of 8-bit signed numbers (x,y) e.g:
100,100 : draw toward bottom right corner
-100,-100: draw toward top left corner

x,y =
100,100

AT+BleHidMouseButton=L,press

<- OK
AT+BleHidMouseMove=100,100


<- OK
OK!
Enter anything to release Left Button
AT+BleHidMouseButton=0

User avatar
CliffordAgius
 
Posts: 11
Joined: Thu Jan 28, 2016 5:57 am

Re: bluefruit.h: No such file or directory

Post by CliffordAgius »

Ok so worked out that to get the TinyUSB version to build and run you have to select in the Arduino Software under Tools change the USB Stack from Arduino to TinyUSB and this then finds the header and builds.

However still no mouse moving sadly...

User avatar
CliffordAgius
 
Posts: 11
Joined: Thu Jan 28, 2016 5:57 am

Re: bluefruit.h: No such file or directory

Post by CliffordAgius »

Ok so more updates I have tried using the HIDKeyboard commands from the example to check that I can control the keyboard just to be sure that the Bluetooth is working and yes it is I can connect and pair as well as send commands for the Keyboard all as per the example for the Adafruit Feather M0 board.

https://learn.adafruit.com/adafruit-fea ... idkeyboard

However in the updated librarys for the M0 board since that learn module was written there is now a BLEMouse as well and it's this that I can't not get to work, it will click the left mouse now and then but not every time and never moves the mouse pointer.

Is anyone else seeing this issue?

Thanks

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”