Skip to content

Commit 9775c90

Browse files
authored
Minor cleanup
1 parent ec678d4 commit 9775c90

File tree

1 file changed

+9
-8
lines changed
  • libraries/Bluefruit52Lib/examples/Peripheral/Neopixel

1 file changed

+9
-8
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/Neopixel/Neopixel.ino

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Include Bluetooth
22

3+
// This sketch is intended to be used with the NeoPixel control
4+
// surface in Adafruit's Bluefruit LE Connect mobile application.
5+
36
#include <Arduino.h>
47
#include <Adafruit_NeoPixel.h>
58
#include <bluefruit.h>
69

7-
// Neopixel
810
#define PIN 23 /* Pin used to drive the NeoPixels */
911

1012
#define MAXCOMPONENTS 4
@@ -24,26 +26,25 @@ void setup()
2426
Serial.println(F("Adafruit Bluefruit Neopixel Test"));
2527
Serial.println(F("------------------------------------"));
2628

27-
// Neopixels
29+
// Config Neopixels
2830
pixels.begin();
2931

3032
Bluefruit.begin();
3133
Bluefruit.setName("Bluefruit52");
3234

33-
// Configure and Start BLE Uart Service
35+
// Configure and start BLE UART service
3436
bleuart.begin();
3537

36-
// Set up Advertising Packet
38+
// Set up the advertising packet
3739
setupAdv();
3840

39-
// Start Advertising
41+
// Start advertising
4042
Bluefruit.Advertising.start();
41-
4243
}
4344

4445
void setupAdv(void)
4546
{
46-
//Bluefruit.Advertising.addTxPower();
47+
// Bluefruit.Advertising.addTxPower();
4748
Bluefruit.Advertising.addFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
4849
Bluefruit.Advertising.addTxPower();
4950

@@ -114,7 +115,7 @@ void swapBuffers()
114115
base_addr+=components;
115116
pixelIndex++;
116117
}
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)
118119
}
119120
pixels.show();
120121

0 commit comments

Comments
 (0)