Skip to content

Commit

Permalink
modified LCD_BacklightRGB
Browse files Browse the repository at this point in the history
  • Loading branch information
felixthecat8a committed Jan 1, 2025
1 parent 113c0d4 commit ab5bbcc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LCD_BacklightRGB
version=1.1.8
version=1.1.9
author=Felix Ochoa
maintainer=Felix Ochoa
sentence=An Arduino library for an 18-pin RGB LCD Display backlight
Expand Down
10 changes: 10 additions & 0 deletions src/LCD_BacklightRGB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
*/
LCD_BacklightRGB::LCD_BacklightRGB(int r, int g, int b):rgb(r, g, b) {}

/**
* @brief Constructor for the BacklightRGB class.
* @param r Pin for the red LED.
* @param g Pin for the green LED.
* @param b Pin for the blue LED.
* @param isCommonAnode Boolean variable indicating common anode RGB LED.
*/
LCD_BacklightRGB::LCD_BacklightRGB(int r, int g, int b, bool isCommonAnode)
:rgb(r, g, b, isCommonAnode) {}

/**
* @brief Initializes the RGB backlight.
* @note Sets the initial color to a default teal (hex: 0x0A878F).
Expand Down
10 changes: 10 additions & 0 deletions src/LCD_BacklightRGB.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define LCD_BACKLIGHTRGB_H

#include <Arduino.h>

#include "BacklightColors.h"
#include "BacklightRGB.h"
#include "BacklightCW.h"
Expand All @@ -31,6 +32,15 @@ class LCD_BacklightRGB {
*/
LCD_BacklightRGB(int r, int g, int b);

/**
* @brief Constructor for the BacklightRGB class.
* @param r Pin number for the red LED.
* @param g Pin number for the green LED.
* @param b Pin number for the blue LED.
* @param isCommonAnode Boolean variable indicating common anode RGB LED.
*/
LCD_BacklightRGB(int r, int g, int b, bool isCommonAnode);

/**
* @brief Initializes the RGB backlight hardware.
*/
Expand Down

0 comments on commit ab5bbcc

Please sign in to comment.