Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Adafruit Feather nRF52840 Sense and Plotter Sketch
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Feather nRF52840 Sense and Plotter Sketch

by mark_lw on Thu Dec 02, 2021 4:14 pm

Will the Adafruit Feather nRF52840 Sense work with the Plotter Sketch?

Here is the link to the Plotter Sketch: https://learn.adafruit.com/bluefruit-le-connect/plotter

Have tried to compile the sketch and there is always some type of error. Is it just for the nRF51 board?

Mark

mark_lw
 
Posts: 5
Joined: Fri Nov 19, 2021 4:25 pm

Re: Adafruit Feather nRF52840 Sense and Plotter Sketch

by mikeysklar on Mon Dec 06, 2021 7:52 pm

Mark,

The Bluefruit_LE_Connect_Plotter.ino example is nRF51 specific and incompatible with the Feather Sense.

You can work with this bit of code and follow the Feather Sense setup procedures to get communication going with the Bluefruit LE Connect App.

Code: Select all | TOGGLE FULL SIZE
void loop(void) {

  delay(1000);                  //wait 1 second
  uint8_t val = random(0, 255); //find random value
  ble.print(val);               //send value to bluefruit uart

  if (SEND_SECOND_PLOT) {               //change SEND_SECOND_PLOT to 1 for add'l sine plot
    if (sineIndex > 255) sineIndex = 0; //stay within bounds of sine table
    ble.print(",");                     //print delimiter for second plot
    ble.print(sine_wave[sineIndex]);    //print value from sine table
    sineIndex++;                        //increment index
  }

  ble.println();  //print newline so app knows to plot the values

}


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

mikeysklar
 
Posts: 6515
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.