File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/Neopixel Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
// Include Bluetooth
2
2
3
+ // This sketch is intended to be used with the NeoPixel control
4
+ // surface in Adafruit's Bluefruit LE Connect mobile application.
5
+
3
6
#include < Arduino.h>
4
7
#include < Adafruit_NeoPixel.h>
5
8
#include < bluefruit.h>
6
9
7
- // Neopixel
8
10
#define PIN 23 /* Pin used to drive the NeoPixels */
9
11
10
12
#define MAXCOMPONENTS 4
@@ -24,26 +26,25 @@ void setup()
24
26
Serial.println (F (" Adafruit Bluefruit Neopixel Test" ));
25
27
Serial.println (F (" ------------------------------------" ));
26
28
27
- // Neopixels
29
+ // Config Neopixels
28
30
pixels.begin ();
29
31
30
32
Bluefruit.begin ();
31
33
Bluefruit.setName (" Bluefruit52" );
32
34
33
- // Configure and Start BLE Uart Service
35
+ // Configure and start BLE UART service
34
36
bleuart.begin ();
35
37
36
- // Set up Advertising Packet
38
+ // Set up the advertising packet
37
39
setupAdv ();
38
40
39
- // Start Advertising
41
+ // Start advertising
40
42
Bluefruit.Advertising .start ();
41
-
42
43
}
43
44
44
45
void setupAdv (void )
45
46
{
46
- // Bluefruit.Advertising.addTxPower();
47
+ // Bluefruit.Advertising.addTxPower();
47
48
Bluefruit.Advertising .addFlags (BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
48
49
Bluefruit.Advertising .addTxPower ();
49
50
@@ -114,7 +115,7 @@ void swapBuffers()
114
115
base_addr+=components;
115
116
pixelIndex++;
116
117
}
117
- pixelIndex += stride - width; // move pixelIndex to the next row (take into account the stride)
118
+ pixelIndex += stride - width; // Move pixelIndex to the next row (take into account the stride)
118
119
}
119
120
pixels.show ();
120
121
You can’t perform that action at this time.
0 commit comments