Coder Social home page Coder Social logo

grove_lcd_rgb_backlight's Introduction

Grove - LCD RGB Backlight Build Status

Grove - LCD RGB Backlight

Grove - LCD RGB Backlight

Done with the tedious mono color backlight? This Grove - LCD RBG Backlight enables you to set the color to whatever you like via the simple and concise Grove interface. It takes I2C as the communication method with your microcontroller. The number of pins required for data exchange and backlight control shrinks from ~10 to 2, relieving IOs for other challenging tasks. In addition, Grove - LCD RGB Backlight supports user-defined characters. Want to get a love heart or another custom character? Just take advantage of this feature and design it!

Usage:

This is an Arudino Library. It include a .h file, a .cpp file and some examples. Through these examples, you can quickly master the use of Grove - LCD RGB Backlight.

The in the following, we will introduce some functions which are used very intuitively.

Initialization

Before we use this lcd, we should initialize it. You can use this function:

lcd.begin(16, 2);

This means that this lcd has 16 columns and 2 rows.

Optionally you can also specify the character size: LCD_5x10DOTS or LCD_5x8DOTS which is the default

and for those board who support different Wire objects, which one:

Example: lcd.begin(16, 2, LCD_5x8DOTS, Wire2);

Change Color of Backlight

One of Grove - LCD RGB Backlight's most important feature is changing the backlight color. It's very simple; just use the folowing function:

void setRGB(int r, int g, int b);

Clear Display

You can clear the display by this function:

void clear();

Turn on and turn off display

void noDisplay();			// turn off display
void display();				// turn on display

Blink

void noBlink();
void blink();

Cursor

void noCursor();
void cursor();

Blink LED Backlight

void noBlinkLED();
void blinkLED();

For more information, please refer to wiki page.


This software is written by loovee([email protected]) for seeed studio
and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics

grove_lcd_rgb_backlight's People

Contributors

awong1900 avatar is-qian avatar killingjacky avatar kurte avatar lanselambor avatar matteyeux avatar maxwelltoo avatar notmyname avatar paulstoffregen avatar pillar1989 avatar reeedstudio avatar richardsun29 avatar trombonehero avatar xiongyihui avatar yexiaobo-seeedstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grove_lcd_rgb_backlight's Issues

Library only supports one row

The examples do not work properly. Color of the display can be set, but text does not appear.
When setting up the display as one row, the text is being displayed:
lcd.begin(16, 1);
But then only one row is usable and the contrast of the displayed text is very low.

New release necessary?

I have already returned one Grove LDC RGB Backlight, because I thought it was faulty. Now I realised that if I use the library via the Arduino IDE's library manager and install it from there (1.0.0), then the backlight does not work on my v5.0 hardware.

If I download the main branch from here as a ZIP and install that, the light turns on properly.

Display Showing RBG Colors and Text Values

When I connect the display to Grove Shield V2 and run any one of the examples the display briefly shows output from example then switches to fading between various RBG colors and text values of those RGB colors.

Is this a faulty unit?

keep getting fatal error

Please help, whenever I try to compile my code, it says fatal error, rgb_lcd.h: no such file or directory

Extra character at the end of the display in SerialDisplay.ino

While testing the SerialDisplay.ino example, after any string I would send to the display through the serial monitor, some extra character is added at the end (see picture attached right below).

IMG_20220504_152319

By the way, if I upload the CustomCharacter.ino example beforehand, this extra character appears to be exactly the same one as the frownie character, if that can help. My guess is that this extra character comes from some memory space at a specific address of the Arduino card.
Can you help on how to remove this extra character from the LCD display?

So Much Problems with Arduino UNO

I got a lot of bugs when compiling the example code "HelloWorld".

Actually it seems the original code is such a mess. Bugs says "Undefined reference to xxx", I couldn't deal with it even after looked at the header file code.

If it is my fault, I will cancel this issue.

lcd.print("Hello world") not printing anything?

Hey

i cannot make that simple hello world file to work,,

#include <Wire.h>
#include "rgb_lcd.h"

rgb_lcd lcd;

const int colorR = 255;
const int colorG = 0;
const int colorB = 0;

void setup() {
    // set up the LCD's number of columns and rows:
    lcd.begin(16, 2);

    lcd.setRGB(colorR, colorG, colorB);

    // Print a message to the LCD.
    lcd.print("hello, world!");

    delay(1000);
}

void loop() {
    // set the cursor to column 0, line 1
    // (note: line 1 is the second row, since counting begins with 0):
    lcd.setCursor(0, 1);
    // print the number of seconds since reset:
    lcd.print(millis() / 1000);

    delay(100);
}


Screen Shot 2021-12-17 at 10 09 01 PM

Display stabillization

Writing to the display quickly, multiple times, causes the screen to render very lightly, as it continuously updates. Is there a best practices for writing to the display in a more stable manner? I am using the display to show the pitch, yaw, and roll of a IMU.

don't work With esp8266

Hello,
is it possible to make work this library with the esp8266.

and in general is it possible to make work the grove module with the esp8266.
(evoluate module not the analogique and numerique who already work)

thanks a lot

Extra pixel in the smiley in CustomCharacter.ino

While testing the CustomCharacter.ino example, there is an extra pixel that appears above the left eye of the smiley, whatever the changes I have tried to make. (see attached picture just below)
IMG_20220504_145237
I just cannot understand why, since the definition for that character is the following:

byte smiley[8] = {
    0b00000,
    0b00000,
    0b01010,
    0b00000,
    0b00000,
    0b10001,
    0b01110,
    0b00000
};

Could you explain why this happens and, hopefully, give some way to remove this extra pixel?

no noBacklight() function ?

Hi,

I'm surprised not to see a noBacklight() function. It will be nice to have this feature.

regards,

Jim

Please add API to turn the backlight off/on- save energy

Is it possible to add this API? Unfortunately setReg is private, but I think it would be something like:

void lcd_backlight_off() {
  lcd.setReg(0x07, 0x0);
  lcd.setReg(0x06, 0x0);
}

void lcd_backlight_on() {
  lcd.setReg(0x07, 0x0);
  lcd.setReg(0x06, 0xff); 
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.