BlueFruit LE Firmata issue

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
xlisax
 
Posts: 6
Joined: Thu Apr 03, 2014 6:08 pm

BlueFruit LE Firmata issue

Post by xlisax »

Hi,

I am trying to integrate the Firmata code into my current project (I have a matrix of Neopixels and I'm adding BlueFruit). Here is a sample of my code:
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_BLE_Firmata.h>
#include "Adafruit_BLE_UART.h"

#define AUTO_INPUT_PULLUPS true
#define ADAFRUITBLE_REQ 10
#define ADAFRUITBLE_RDY 2
#define ADAFRUITBLE_RST 9
#define pixelPin 6 //neopixel digital IO pin

Adafruit_BLE_UART BLEserial = Adafruit_BLE_UART(ADAFRUITBLE_REQ, ADAFRUITBLE_RDY, ADAFRUITBLE_RST);
Adafruit_BLE_FirmataClass BLE_Firmata(BLEserial); //THE PROBLEM

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 14, pixelPin,
NEO_MATRIX_BOTTOM + NEO_MATRIX_LEFT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800);

The project does not work unless I comment out: Adafruit_BLE_FirmataClass BLE_Firmata(BLEserial);
And when I do comment it out there are issues, obviously.

Can you spot what is wrong? (I'm wondering if this is because I have a NeoPixel matrix connected to digital pin 6)

Thank you.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: BlueFruit LE Firmata issue

Post by adafruit_support_mike »

What are the exact error messages you get when you uncomment that line of code?

xlisax
 
Posts: 6
Joined: Thu Apr 03, 2014 6:08 pm

Re: BlueFruit LE Firmata issue

Post by xlisax »

The error is:
undefined reference to `BLE_Firmata'

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: BlueFruit LE Firmata issue

Post by Franklin97355 »

Have you run the StandardFirmata sketch in the examples?

xlisax
 
Posts: 6
Joined: Thu Apr 03, 2014 6:08 pm

Re: BlueFruit LE Firmata issue

Post by xlisax »

Yes, I have run the example and everything works well. When I add it to my project's code my portion of the project (the NeoPixels connected to digital pin 6) stops working.

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: BlueFruit LE Firmata issue

Post by Franklin97355 »

Could you post your code and a description or drawing of your connections between it all?
Please use the code button as shown below.
Code Button.png
Code Button.png (6.65 KiB) Viewed 598 times

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

Return to “Other Products from Adafruit”