Skip to content

Commit 42b6a48

Browse files
committed
Adding separators for better readability.
1 parent def3aa9 commit 42b6a48

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

src/lib/display/Backlight.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@
1111
1212
*/
1313

14+
/**************************************************************************************
15+
* INCLUDE
16+
**************************************************************************************/
17+
1418
#include <Arduino.h>
1519
#include <Wire.h>
1620
#include "Backlight.h"
1721

22+
/**************************************************************************************
23+
* PUBLIC MEMBER FUNCTIONS
24+
**************************************************************************************/
25+
1826
void Backlight::begin()
1927
{
2028
reset();
@@ -85,6 +93,10 @@ void Backlight::setColor(uint8_t blue, uint8_t green, uint8_t red)
8593

8694
}
8795

96+
/**************************************************************************************
97+
* PRIVATE MEMBER FUNCTIONS
98+
**************************************************************************************/
99+
88100
// Read the Chip ID register, this is a good test of communication
89101
uint8_t Backlight::getChipID()
90102
{

src/lib/display/Backlight.h

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#ifndef RGBled_h
22
#define RGBled_h
33

4+
/**************************************************************************************
5+
* INCLUDE
6+
**************************************************************************************/
7+
8+
#include <Wire.h>
9+
10+
/**************************************************************************************
11+
* DEFINE
12+
**************************************************************************************/
13+
414
// Regsiter Map
515
// http://www.issi.com/WW/pdf/IS31FL3194.pdf
616
#define IS31FL3194_PRODUCT_ID 0x00 // should return 0xCE
@@ -125,6 +135,10 @@
125135
// light intensity (fraction of current max)
126136
#define Imax_frac 0x80 // Imax_frac/256 * Imax = current
127137

138+
/**************************************************************************************
139+
* TYPEDEF
140+
**************************************************************************************/
141+
128142
enum RGBColors {
129143
off = 0,
130144
red = 1,
@@ -135,18 +149,9 @@ enum RGBColors {
135149
cyan = 6
136150
};
137151

138-
/*
139-
// allowed colors
140-
#define off 0
141-
#define red 1
142-
#define green 2
143-
#define blue 3
144-
#define yellow 4
145-
#define magenta 5
146-
#define cyan 6
147-
*/
148-
149-
#include "Wire.h"
152+
/**************************************************************************************
153+
* CLASS DECLARATION
154+
**************************************************************************************/
150155

151156
class Backlight
152157
{

0 commit comments

Comments
 (0)