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
Adafruit Feather nRF52840 Sense and Plotter Sketch
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mark_lw
- Posts: 5
- Joined: Fri Nov 19, 2021 4:25 pm
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Adafruit Feather nRF52840 Sense and Plotter Sketch
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.
https://learn.adafruit.com/adafruit-fea ... e-examples
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
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
}
Please be positive and constructive with your questions and comments.